简体   繁体   English

无法从 Docker 集线器中提取 Docker 中的 Docker 图像

[英]Cannot Pull Docker Images in Docker from Docker Hub

I am using docker in Linux ol7.我在 Linux ol7 中使用 docker。 I have installed a docker successfully.我已经成功安装了 docker。 But when I try to pull images from the docker hub I am getting the below error.但是,当我尝试从 docker 集线器中提取图像时,出现以下错误。

[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我正在使用的 Docker 版本 - Docker 版本 18.09.1-ol,构建 e32a1bd

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. 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.您可以探索thisthis来处理注册表 url。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM