update 3y old "postgres:11.3" to "postgres:11"
Describe the problem
the repo recommended postgres:11.3
image is 3 years old ( created : 2019-06-10
)
And it does not include the last 3 years of security/bug fix updates.
- debian
- postgres
Steps to reproduce
repo: develop
And the current source code is using postgres:11.3
image, and this is very old.
command-line verify:
$ docker inspect --format='{{index .RepoDigests 0}} {{.Created}}' postgres:11.3
postgres@sha256:1518027f4aaee49b836c5cf4ece1b4a16bdcd820af873402e19e1cc181c1aff2 2019-06-10T23:51:09.624295446Z
and based on: "Debian GNU/Linux 9.9 (stretch)"
$ docker run -it --rm postgres:11.3 bash -c "lsb_release -a"
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
And 'Debian LTS support for Debian 9 "Stretch" ended on June 30, 2022' ( with Debian 9.13 )
Recommendation
just use postgres:11
image without minor release.
- this is
debian:bullseye-slim
based- code: https://github.com/docker-library/postgres/blob/master/11/bullseye/Dockerfile
PG_VERSION 11.16-1.pgdg110+1
- code: https://github.com/docker-library/postgres/blob/master/11/bullseye/Dockerfile
And the current pg11 release is: https://www.postgresql.org/docs/release/11.16/ Release date: 2022-05-12