I’m attempting to push an image to my private Docker Hub account using the docker push command.
In the past, this has worked just fine (even for previous versions of this image).
However, it is now hanging in perpetual “waiting” mode as shown in the screenshot below:
It would seem the daemon has frozen in this “Waiting” state for the past 10+ minutes, with no timeout or error message reported. This is a problem that has appeared in the past and then “magically” gone away later. This time, the problem has persisted for some time.
ETA: Here is my docker version info:
Client:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: windows/amd64
Server:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: linux/amd64
Two questions:
Is there some way for me to fix this problem so that the Docker Hub Registry is actually functional for my purposes?
Is it possible for the Docker daemon to throw some sort of error when this problem occurs, so that I’m able to capture it and apply the fix, as needed?
FYI: Restarting the docker-machine (VirtualBox) seems to have provided some progress. In particular, now the docker push command hangs on a particular layer: “Pushing 1.407 MB/12.14 MB” (see screenshot below):
Here’s the initial output of the docker.log (prior to executing the new docker push):
time=“2016-04-14T00:06:00.566660007Z” level=info msg=“API listen on /var/run/doc
ker.sock”
time=“2016-04-14T00:11:29.338225942Z” level=debug msg=“Calling GET /v1.22/info”
time=“2016-04-14T00:11:29.338286356Z” level=debug msg=“GET /v1.22/info”
time=“2016-04-14T00:11:29.452014636Z” level=debug msg=“Calling POST /v1.22/image
s/insightindustry/dev-tools/push”
time=“2016-04-14T00:11:29.452059643Z” level=debug msg=“POST /v1.22/images/insigh
tindustry/dev-tools/push?tag=”
time=“2016-04-14T00:11:29.452293986Z” level=debug msg=“Trying to push docker.io/
insightindustry/dev-tools to https://registry-1.docker.io v2”
time=“2016-04-14T00:11:30.024493824Z” level=debug msg=“Pushing repository: insig
htindustry/dev-tools:latest”
time=“2016-04-14T00:11:30.060828995Z” level=debug msg=“Pushing layer: sha256:27d
17492a53eeb15a77853efadea0a89bea48440c2d5819fcb8b3aa7ff894585”
time=“2016-04-14T00:11:30.680582971Z” level=debug msg=“Increasing token expirati
on to: 0 seconds”
time=“2016-04-14T00:11:31.361442352Z” level=debug msg=“Assembling tar data for 0
d4d82f692d482bb50722a6484af642432626dd1396da6ff7c13727e5d4177a3 from /mnt/sda1/v
ar/lib/docker/aufs/diff/0d4d82f692d482bb50722a6484af642432626dd1396da6ff7c13727e
5d4177a3”
And here’s the output following a new docker push:
time=“2016-04-14T04:20:15.989144961Z” level=debug msg=“GET /v1.22/info”
time=“2016-04-14T04:20:16.027590659Z” level=debug msg=“Calling POST /v1.22/image
s/insightindustry/dev-tools/push”
time=“2016-04-14T04:20:16.027636729Z” level=debug msg=“POST /v1.22/images/insigh
tindustry/dev-tools/push?tag=”
time=“2016-04-14T04:20:16.027754868Z” level=debug msg=“Trying to push docker.io/
insightindustry/dev-tools to https://registry-1.docker.io v2”
time=“2016-04-14T04:20:16.347133520Z” level=debug msg=“Pushing repository: insig
htindustry/dev-tools:latest”
time=“2016-04-14T04:20:16.915397226Z” level=debug msg=“Increasing token expirati
on to: 0 seconds”
So as it stands, I can’t see anything weird jumping out to me other than the “Increasing token expiration to: 0 seconds” line.
ETA: I didn’t mention it before, but the behavior of the new docker push is identical to the previous one, hanging up on the same exact layer with Pushing 1.407 MB/12.14 MB.
I am having similar issue, it doesn’t happen all the time for me, but I get a list of different layers, all saying waiting, then no pushing. I just redo the build/push and it goes through, but no error is getting sent out for the fact it didn’t push.
I am seeing this as well. Ubuntu 16.04, docker 1.11.2, public repo. Seems random how far it gets before it hangs. Sometimes stops with an HTTP error 408.
I’m having the issue with Docker 1.12.0 on Windows 10 (the latest Insider build).
Checked the logs—nothing interesting there:
time="2016-07-29T18:34:52.346614642Z" level=debug msg="Assembling tar data for 710271407e4fd2bc3f0201967727eee34a5f206f74cf0f36bc33bab62b298070"
time="2016-07-29T18:34:52.398633677Z" level=debug msg="Assembling tar data for 34ff364e2f1be5db53f99be326de5e8264e4efcbb7962890d845a6b9a2cab100"
time="2016-07-29T18:34:52.705860241Z" level=debug msg="Pushing layer: sha256:78887f53843c5dc256f4c0c17bc7343990aba943f3ef9078058a148a90f2d34a"
time="2016-07-29T18:34:53.159739010Z" level=debug msg="Pushing layer: sha256:aea97fe987ebc9b64f6dd8dc2e0fa156e5bffe81b69e54e7e936f459434b4ef2"
time="2016-07-29T18:34:53.160257804Z" level=error msg="Not continuing with push after error: context canceled"
time="2016-07-29T18:34:53.712838297Z" level=debug msg="Assembling tar data for 0ff659325014c2f452236ab6147bd542728c730be394146ab497f8279efc0f83"
time="2016-07-29T18:34:54.066550451Z" level=debug msg="Assembling tar data for ceae7d95f2e7b592b70fb9ad4d6712f3cefd566530529e7740d5109e79988c74"
time="2016-07-29T18:34:59.875226976Z" level=debug msg="Pushing layer: sha256:aea97fe987ebc9b64f6dd8dc2e0fa156e5bffe81b69e54e7e936f459434b4ef2"
time="2016-07-29T18:34:59.876789459Z" level=error msg="Not continuing with push after error: context canceled"
time="2016-07-29T18:35:00.780837361Z" level=debug msg="Assembling tar data for ceae7d95f2e7b592b70fb9ad4d6712f3cefd566530529e7740d5109e79988c74"
Same problem here.
I’m on CentOS 7
Docker version 17.04.0-ce, build 4845c56
The push command just hangs there doing nothing, no progress no messages no clue.
Just this:
86c4534765bb: Pushing [==> ] 655.9kB/11.03MB
and waiting.
Is there any logs apart journal that does not says anything useful to look for?
Any known workaround?
I had this and it proved to be an incorrect specification of the nexus repo url in the noproxy variable in docker https-proxy.conf- I’d used a wildcard but it did not seem to evaluate it when pushing. Details here https://github.com/docker/distribution/issues/2147 at this post where he was kind enough to post a permanent solution
Such a simple solution. I closed my laptop lid and when I reopened it, I quit the “docker push”, ran it again, and it was stuck at the same upload amount. I’m using the M1 preview