Network timed out while trying to connect to https://index.docker.io

0 votes

I’m new to docker. I was experimenting things here and there. I tried to perform docker pull hello-world but its giving me the following error

bash-3.2$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.
bash-3.2$ 

where am I going wrong?

Jul 27, 2018 in Docker by Hannah
• 17,150 points
239 views

1 answer to this question.

0 votes

This happened because docker virtual machine gets itself into a storage state. Restart your docker and then refresh the environment variables.

$ docker-machine restart default
$ eval $(docker-machine env default)
This should solve your problem..
answered Jul 27, 2018 by Kalgi
• 46,110 points

Related Questions In Docker

0 votes
1 answer

Error while trying to run an image - Docker

This error means that the container tries ...READ MORE

answered Aug 22, 2018 in Docker by Nilesh
• 6,920 points
2,061 views
0 votes
1 answer
0 votes
1 answer

Docker can't connect to docker daemon

The Post-installation steps for Linux documentation reveals the following ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
83 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,300 points
270 views
0 votes
1 answer

Docker unable to connect AWS EC2 cloud

Your command is not pointing to your ...READ MORE

answered Jul 16, 2018 in Docker by Kalgi
• 46,110 points
94 views
+2 votes
1 answer

Cannot connect to docker swarm service task

The id that command docker service ps <service> gives ...READ MORE

answered Sep 26, 2018 in Docker by Kalgi
• 46,110 points
83 views