Closed Sea421 closed 3 years ago
I'm not able to reproduce
$ docker build -t postgres:test - << EOF
FROM postgres:10
ENV POSTGRES_VERSION 10
ENV POSTGIS_VERSION 2.5
RUN apt-get clean && apt-get update --fix-missing && apt-get install -y --no-install-recommends postgis postgresql-10-postgis-2.5 postgresql-10-postgis-2.5-scripts
EOF
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM postgres:10
---> 38c3121e985d
Step 2/4 : ENV POSTGRES_VERSION 10
---> Using cache
---> d8e5b9fe88f2
Step 3/4 : ENV POSTGIS_VERSION 2.5
---> Using cache
---> 6bf595062e89
Step 4/4 : RUN apt-get clean && apt-get update --fix-missing && apt-get install -y --no-install-recommends postgis postgresql-10-postgis-2.5 postgresql-10-postgis-2.5-scripts
---> Using cache
---> 6fe1af7efe86
Successfully built 6fe1af7efe86
Successfully tagged postgres:test
Maybe it's a temporary issue? You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum
You're right. It was temporary issue. It is working fine today. I have tried many times yesterday, but it was not working, magically it is working today, I don't know why. Thanks for your reply.
Hi team,
My postgres docker was working fine from 2 months ago. Today I have deleted old container and image then rebuild it. But it gives "failed to fetch" error. (E: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/stretch-pgdg/10/binary-amd64/Packages.bz2 Writing more data than expected (2607 > 2606)])
I have inspected little, it gives error in "
apt-get update
", I assume that may be there is the bug Feb 15th release of postgres.My dockerfile:
Error message:
Please advice, how to fix it.
Thanks