FROM python:3.9.5
RUN apt-get update && apt-get install -y postgresql-client-11
for Dockerfile above, docker build commands works smoothly.
But
FROM python:3.9.6
RUN apt-get update && apt-get install -y postgresql-client-11
docker build throws the following error.
#5 2.088 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B]
#5 3.086 Fetched 8545 kB in 3s (3341 kB/s)
#5 3.086 Reading package lists...
#5 3.605 Reading package lists...
#5 4.113 Building dependency tree...
#5 4.251 Reading state information...
#5 4.356 E: Unable to locate package postgresql-client-11
Unable to locate package postgresql-client-11 in python v3.9.6 or above base image