Start pulling docker image apolloauto/apollo:dev-x86_64-20180702_1140 ... Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
时间: 2023-07-17 17:10:24 浏览: 271
请确保您的 Docker 守护程序正在运行。您可以使用以下命令检查它的状态:
```
sudo systemctl status docker
```
如果它没有运行,请使用以下命令启动它:
```
sudo systemctl start docker
```
如果您没有权限执行此命令,请确保您拥有适当的权限或者使用 sudo 运行命令。
相关问题
Using default tag: latest Trying to pull repository docker.io/library/centos ... latest: Pulling from docker.io/library/centos a1d0c7532777: Pulling fs layer error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/5d/5d0da3dc976460b72c77d94c8a1ad043720b0416bfc16c52c45d4847e53fadb6/data?verify=1685540141-Vauep6X8a9buhHnCUILNJFggMZI%3D: net/http: TLS handshake timeout
这是一个 Docker Hub 拉取镜像时出现的错误。它表明在尝试从 Docker Hub 下载 CentOS 镜像时出现了问题。可能是因为网络问题或 Docker Hub 服务器出现了故障。
你可以尝试重新运行命令,或者检查你的网络连接以确保它正常工作。如果问题仍然存在,请等待一段时间并重试,或者尝试使用其他镜像源。
(Milora) [root@ser341180748939 first]# sudo docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 719385e32844: Pull complete Digest: sha256:a13ec89cdf897b3e551bd9f89d499db6ff3a7f44c5b9eb8bca40da20eb4ea1fa Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/
根据你提供的输出,可以确认Docker已成功安装并运行。你看到的输出消息 "Hello from Docker!" 表明安装正常。
现在你可以尝试更多有趣的Docker操作,如运行其他容器镜像或构建自己的镜像。你可以访问Docker官方文档和Docker Hub网站获取更多示例和想法。
如果你有其他问题,我会尽力帮助你。
阅读全文