Docker Community Forums

Share and learn in the Docker community.

Push to local registry keeps retrying despite success responses

Hello, I’m a bit stuck and looking for some help. I’ve set up a local registry and I’m trying to push the hello-world image onto it as a test. It pushes and gets stuck at the end, after which it retries several times and then errors out with a 503. Registry logs don’t appear to show any errors either.

docker push localhost:5000/hello-world
The push refers to repository [localhost:5000/hello-world]
af0b15c8625b: Pushing [==================================================>]  3.584kB
received unexpected HTTP status: 503 Service Unavailable




2019-03-24T04:09:09.693804400Z 172.18.0.1 - - [24/Mar/2019:04:09:09 +0000] "POST /v2/hello-world/blobs/uploads/ HTTP/1.1" 202 0 "" "docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \\(darwin\\))"

2019-03-24T04:09:09.694344800Z time="2019-03-24T04:09:09.6933268Z" level=info msg="response completed" go.version=go1.11.2 http.request.host="localhost:5000" http.request.id=e873d124-7f58-449a-9fd9-1f2a5bd0a3e9 http.request.method=POST http.request.remoteaddr="172.18.0.1:45484" http.request.uri="/v2/hello-world/blobs/uploads/" http.request.useragent="docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \(darwin\))" http.response.duration=7.971ms http.response.status=202 http.response.written=0 

2019-03-24T04:10:40.114051600Z time="2019-03-24T04:10:40.1133853Z" level=info msg="response completed" go.version=go1.11.2 http.request.host="localhost:5000" http.request.id=ec1c91e1-654a-4d12-b454-80afbbb514d7 http.request.method=POST http.request.remoteaddr="172.18.0.1:45564" http.request.uri="/v2/hello-world/blobs/uploads/" http.request.useragent="docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \(darwin\))" http.response.duration=5.9495ms http.response.status=202 http.response.written=0 

2019-03-24T04:10:40.114155800Z 172.18.0.1 - - [24/Mar/2019:04:10:40 +0000] "POST /v2/hello-world/blobs/uploads/ HTTP/1.1" 202 0 "" "docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \\(darwin\\))"

2019-03-24T04:12:15.712460400Z time="2019-03-24T04:12:15.7120219Z" level=info msg="response completed" go.version=go1.11.2 http.request.host="localhost:5000" http.request.id=24c168ab-9306-407a-8f5c-b0f2a976446f http.request.method=POST http.request.remoteaddr="172.18.0.1:45650" http.request.uri="/v2/hello-world/blobs/uploads/" http.request.useragent="docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \(darwin\))" http.response.duration=10.0455ms http.response.status=202 http.response.written=0 

2019-03-24T04:12:15.712567500Z 172.18.0.1 - - [24/Mar/2019:04:12:15 +0000] "POST /v2/hello-world/blobs/uploads/ HTTP/1.1" 202 0 "" "docker/18.09.2 go/go1.10.6 git-commit/6247962 kernel/4.9.125-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/18.09.2 \\(darwin\\))"

What am I missing?

Got it. My host was not set correctly host: http://172.18.0.2:5000. I changed it to host: http://0.0.0.0:5000 and it worked.