0

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?

Ignas Damunskis
  • 1,515
  • 1
  • 17
  • 44

1 Answers1

2

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

Nico Haase
  • 11,420
  • 35
  • 43
  • 69
  • So to my understanding using Dockerfile I cannot install certain versions of certain packages on certain image such as debian:jessie? – Ignas Damunskis Sep 26 '22 at 07:57
  • You can install exaclty those packages within that Dockerfile that are available on a raw Debian system. Using Docker does not change this in any way – Nico Haase Sep 26 '22 at 08:01
  • It worked! I replaced it to debian:latest image and 1.18.0 was installed by default. Thank you – Ignas Damunskis Sep 26 '22 at 08:27