Home > database >  Can't install latest nginx version when using debian:jessie
Can't install latest nginx version when using debian:jessie

Time:09-27

I am trying to enable HTTP2 for my nginx and I have his dockerfile where I use debian:jessie docker image and I try to install nginx:

FROM debian:jessie
RUN apt-get update && apt-get install -y nginx
RUN nginx -v

Unfortunatelly, when running it, I see nginx version: nginx/1.6.2 and according to documentation HTTP2 is available on 1.9.5 or newer.

Why does it install 1.6.2 and not newer? And how can I update it?

CodePudding user response:

Debian Jessie was released in 2015 and should no longer be used in any production system, as all kinds of support ended in 2020.

Usually, Debian does not provide upgraded versions of the packages they use. If you want to use more current packages, use either a more current version of Debian or a distribution with rolling releases

  • Related