Home:ALL Converter>Unable to push image to Docker Hub registry

Unable to push image to Docker Hub registry

Ask Time:2017-06-21T06:04:31         Author:Jonathan

Json Formatter

I am brand new to Docker and I am trying to follow the Getting Started tutorial from Docker. I am using Docker 17.05-ce under Ubuntu 17.04. The problem appears to be network related. When I try to push I get the following results:

jonathan@poseidon:~/DockerTest$ sudo docker push jgossage/get-started:part1
The push refers to a repository [docker.io/jgossage/get-started]
1770f1c9a8cf: Pushed 
61fd1d8cd138: Pushed 
e0f735a5e86f: Layer already exists 
1de570a07fb5: Pushed 
b3640b6d4ac2: Layer already exists 
08d4c9ccebfd: Pushed 
007ab444b234: Retrying in 1 second 
dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: dial udp 127.0.0.53:53: i/o timeout
jonathan@poseidon:~/DockerTest$ sudo docker logs 58e8df0a7426
 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
172.17.0.1 - - [20/Jun/2017 15:12:24] "GET / HTTP/1.1" 200 -

172.17.0.1 - - [20/Jun/2017 15:13:17] "GET / HTTP/1.1" 200 -

The push runs for some time with several retries before timing out.

This is on a home network with one computer connected to the router via WiFi and then normal TCP to my ISP and the Internet. What steps can I take to make Docker run reliably?

Author:Jonathan,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/44663759/unable-to-push-image-to-docker-hub-registry
Céline Aussourd :

It looks like a DNS issue similar to this one: https://forums.docker.com/t/fata-0025-io-timeout-on-docker-image-push/1742/9\n\nThe suggestion is to replace your current DNS (127.0.0.53) by the Google DNS (8.8.8.8). \n\nI'm not sure if there is an open issue concerning this problem. I couldn't find one. ",
2017-06-21T13:12:06
yy