I am building an image and encountering a problem with apt-get.
I distilled the problem to this. Try running this line. Does it fail for you as well?
sudo docker run --rm -it node:0.10.38 apt-get update
Get:1 security.debian.org jessie/updates InRelease [84.1 kB]
Get:2 http.debian.net jessie InRelease [206 kB]
Get:3 security.debian.org jessie/updates/main amd64 Packages [465 B]
Get:4 debian.net jessie-updates InRelease [117 kB]
Get:5 debian.net jessie/main amd64 Packages [9022 kB]
Get:6 debian.net jessie-updates/main amd64 Packages [20 B]
Fetched 9430 kB in 10s (942 kB/s)
W: Failed to fetch debian.net/debian/dists/jessie/main/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
[links removed because I couldn’t post otherwise]
After this the build fails because of an error code.
If I try running the same command on a mysql container it works.
What is going on?
This is preventing my build server from creating new images and stopping my CI…