docker run hello-world 遇到错误消息 - error during connect

简介: docker run hello-world 遇到错误消息 - error during connect

执行命令行:


docker run hello-world


image.png


遇到错误消息:


docker: error during connect: This error may indicate that the docker daemon is not running.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.

See ‘docker run --help’.


错误消息里已经解释清楚原因了:docker daemon 没有启动。


进到文件夹:C:\Program Files\Docker\Docker


执行 DockerCli -switchDaemon 之后,


image.png


任务栏里看到这个 icon:


image.png

之后执行成功:


image.png

这条消息打印的背后,执行了这些事情:


(1) The Docker client contacted the Docker daemon.


Docker 客户端同 docker daemon 连接


(2) The Docker daemon pulled the “hello-world” image from the Docker Hub.

(windows-amd64, nanoserver-1809)


因为这个命令是第一次执行,Docker daemon 从 docker hub 网站,将 hello-world 镜像下载到本地。


(3) The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.


Docker daemon 基于下载好的镜像,创建一个新的容器,后者运行镜像,产生一条输出消息


(4) The Docker daemon streamed that output to the Docker client, which sent it to your terminal.


Docker daemon 将输出发给 docker 客户端,后者再发到 Windows 控制台。


相关文章
|
1月前
|
Java 数据安全/隐私保护 Docker
Docker Desktop 启动报错 Unexpected WSL error 问题解决
Docker Desktop 启动报错 Unexpected WSL error 问题解决
413 0
|
4月前
|
前端开发 Java 数据安全/隐私保护
Docker Desktop 启动报错 Unexpected WSL error 问题解决
Docker Desktop 启动报错 Unexpected WSL error 问题解决
|
3月前
|
安全 Linux 数据安全/隐私保护
docker运行报错docker: Error response from daemon: AppArmor enabled on system but the docker-default prof
docker运行报错docker: Error response from daemon: AppArmor enabled on system but the docker-default prof
76 0
|
5月前
|
Docker 容器
error during connect: this error may indicate that the docker daemon is not running
error during connect: this error may indicate that the docker daemon is not running
169 0
|
7天前
|
Docker Windows 容器
Windows Docker Desktop 无法启动 自动退出报错信息为:Docker Desktop -Unexpected WsL error An unexpected error was e
Windows Docker Desktop 无法启动 自动退出报错信息为:Docker Desktop -Unexpected WsL error An unexpected error was e
26 0
|
4月前
|
Docker 容器
Docker服务启动失败报错:Job for docker.service failed because the control process exited with error code.
Docker服务启动失败报错:Job for docker.service failed because the control process exited with error code.
|
4月前
|
Kubernetes Docker 容器
Job for docker.service failed because the control process exited with error code.
Job for docker.service failed because the control process exited with error code.
51 0
|
5月前
|
Unix Docker 容器
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker
|
5月前
|
Docker Windows 容器
Docker在win10上报错,error during connect: In the default daemon configuration on Windows
Docker在win10上报错,error during connect: In the default daemon configuration on Windows
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github