这个错误可能表明docker守护进程未运行。

3

我是Docker的新手,在命令行中输入docker version后,遇到了以下错误:

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

编辑:操作系统为Windows。


欢迎来到stackoverflow。正如错误提示所示,您需要在计算机上启动Docker引擎。 - codeaprendiz
1个回答

1
在Linux上,您应该通过systemctl status docker.service检查守护进程的状态,然后:
sudo systemctl enable docker.service
sudo systemctl enable docker.socket

sudo systemctl start docker.socket
sudo systemctl start docker.service

在Windows上,您可以通过Windows服务管理器来检查其状态。

你的指令是针对Linux系统的,而OP正在使用Windows。 - robertklep
帖子所有者没有指定操作系统。在这种情况下,您应该通过Windows服务管理器检查服务状态。 - Antonio Petricca
他们说“在cmd中”,而Docker套接字路径也表明它是Windows。 - robertklep
我编辑了帖子,使其更加清晰明了。 - Antonio Petricca

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接