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

Cannot Pull Docker Images in Docker from Docker Hub

我在 Linux ol7 中使用 docker。我已经成功安装了 docker。但是,当我尝试从 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 我正在使用的版本 - Docker 版本 18.09.1-ol,构建 e32a1bd

尝试传递给完整的 docker 注册表官方 URL,从错误看来它看起来像是在主机 Docker 套接字 docker.sock 或其他地方但不是在官方注册表上。

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

您可以探索 this and this 来处理注册表 url。