Docker 守护进程不是 运行 或来自 docker 守护进程的错误响应

Docker Daemon is not running or Error response from docker daemon

sarda@DESKTOP-32BAAU7 MINGW64 /f/Docker Practices
$ **docker image ls**
error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified.

如果你运行docker info,你会看到下一个:

$ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  compose: Docker Compose (Docker Inc., v2.0.0-rc.1)
  scan: Docker Scan (Docker Inc., v0.8.0)

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

这意味着实际上你没有启动 docker 守护进程,看起来你正在使用 windows,所以请先启动 docker-desktop,然后再执行任何其他 docker命令。

详细安装和启动方法见Start Docker Desktop