Docker Community Forums

Share and learn in the Docker community.

Error response from daemon on Ubuntu 16.04

(Wangji1) #1

I installed docker-ce for Ubuntu, when ran sample hello-world, met error response.
sudo docker run hello-world
Unable to find image ‘hello-world:latest’ locally
docker: Error response from daemon: Get net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See ‘docker run --help’.

what cause it? how to solve it?

(Wangji1) #2

I didn’t enable firewall, it’s inactive status.
Which steps I missed when installing docker-ce?

(Andrevtg) #3

First things first:

1.Try pinging registry IP, if you can’t reach it you have a network issue:


2.Try curling the registry, you should get a JSON error response if things are OK:

curl {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

If you can ping and curl then you should be able to use the registry normally.
I’ve heard something about China blocking registry IP/DNS, I dunno (check!topic/docker-user/9ScigkPORRg).

(Wangji1) #4

yes, as you said.
I can’t ping, also get error message when curling the registry.

What does the google doc show? I can’t open it, I don’t know which group I should join?

(Andrevtg) #5

This means that your workstation can’t reach the registry. This could be a corporate network/proxy issue. This is not a docker engine issue.

(Wangji1) #6

many thanks for your reply.