distribution: Docker push on private registry hangs
Hi,
I set up a private 2.0 registry on azure, used nginx for basic auth and in the end made it all work.
When i started pushing images though, I noticed that almost every time the push hangs indefinitely at some point with something like this:
[info] 86dfb1389584: Buffering to Disk
One time I waited for an hour, then ctrl-c’d it and did it again, only to get an error message saying that docker is already pushing that image. I restarted the daemon, pushed it again and it got stuck after a different hash. The third time it succeeded.
It did that a number of times with different images. I couldn’t find anything in the logs (both client and server side) so I debugged the network with iftop: the push is terribly slow (I only have 4 mbits unfortunately) but I can see when it hangs because the connection to the registry disappears completely from the iftop list.
tl;dr: connection closes, docker deamon hangs indefinitely while pushing.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 28 (3 by maintainers)
I’m using Mac Beta, I’ve been dealing with this problem for a few hours. Restarting the docker daemon worked for me as well.
Same happened to me on Windows, I worked it around by restarting the virtual machine (
docker-machine restart).on ubuntu I restarted docker service and that fixed the hanging problem
sudo service docker restartsame issue with
19.03.14, It seem by the plugins forlokiin my case, It become ok after I remove the lokiI still hit this issue from time to time, and restarting the Docker daemon does not help.
5 Years later, the docker daemon solutions works perfectly!
Hit this today, restarting the docker agent worked for me, try that first before investigating further.
Just had this occur, would hang while pushing a layer to a private registry and finally die with a socket error.
First, I tried clearing out the registry’s data folder and restarting it thinking it could be some sort of corruption but after re-pushing I still had the same error (albeit on a different file this time)…
I then restarted Docker on my mac and it was fixed.
Docker Version = 18.03.0-ce-mac60 (23751)
Still reproducible, when pushing to AWS ECS, restarting the docker-machine worked.