docker apt-get error de actualización

My dockerfile

FROM node:argon # Set the locale RUN apt-get clean && apt-get update RUN apt-get install locales RUN locale-gen en_US.UTF-8 

9 de cada 10 veces, no se puede generar con el siguiente error.

 Sending build context to Docker daemon 73.95 MB Step 1 : FROM node:argon ---> 10a26800d95a Step 2 : RUN apt-get clean && apt-get update ---> Running in 5a41dd8ab15e Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] Get:2 http://security.debian.org jessie/updates/main amd64 Packages [390 kB] Ign http://httpnetworkingir.debian.org jessie InRelease Err http://httpnetworkingir.debian.org jessie Release.gpg Error reading from server. Remote end closed connection [IP: 5.153.231.35 80] Get:3 http://httpnetworkingir.debian.org jessie-updates InRelease [142 kB] Err http://httpnetworkingir.debian.org jessie-updates/main amd64 Packages Get:4 http://httpnetworkingir.debian.org jessie Release [148 kB] Err http://httpnetworkingir.debian.org jessie-updates/main amd64 Packages Get:5 http://httpnetworkingir.debian.org jessie/main amd64 Packages [9064 kB] Err http://httpnetworkingir.debian.org jessie-updates/main amd64 Packages Err http://httpnetworkingir.debian.org jessie-updates/main amd64 Packages 404 Not Found [IP: 5.153.231.35 80] Fetched 9808 kB in 15s (615 kB/s) W: Failed to fetch http://httpnetworkingir.debian.org/debian/dists/jessie/Release.gpg Error reading from server. Remote end closed connection [IP: 5.153.231.35 80] W: Failed to fetch http://httpnetworkingir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 5.153.231.35 80] E: Some index files failed to download. They have been ignonetworking, or old ones used instead. The command '/bin/sh -c apt-get clean && apt-get update' returned a non-zero code: 100 

Nada cambia, alguna idea?

Tu Dockerfile funciona perfecto desde mi máquina. Supongo que es causado por la conectividad de la networking. Por lo tanto, compruebe si está detrás de un firewall y si necesita establecer un proxy para acceder a Internet. Si es así, agregue este command en su file Docker delante de los commands de RUN apt-get para establecer el proxy ENV http_proxy 'http://<server-address>:<port>'

Construí tu file Docker varias veces sin problemas. Intente reiniciar su service / instancia / máquina Docker.

Es posible que tenga problemas de networking, ya que el problema es intermitente.