Azmy
Azmy

Reputation: 203

Cannot Pull Docker Images in Docker from Docker Hub

I am using docker in Linux ol7. I have installed a docker successfully. But when I try to pull images from the docker hub I am getting the below error.

[root@xxxxx ~]# docker run hello-world

Unable to find image 'hello-world: latest' locally
docker: error during connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=hello-world&tag=latest: EOF.
See 'docker run --help'.

Docker Version I am using - Docker version 18.09.1-ol, build e32a1bd

Upvotes: 0

Views: 6764

Answers (1)

Adiii
Adiii

Reputation: 59936

Try to pass to full docker registry offical URL, from the error it seems like it looking on host machine Docker socket docker.sock or somewhere else but not on offical registry.

docker run registry.hub.docker.com/library/hello-world

You can explore this and this to deal with registry url.

Upvotes: 2

Related Questions