天天看点

docker使用常用命令:启动/重启/关闭docker

1、启动、重启、关闭 docker 服务

1、Cannot connect to the Docker daemon

  报错信息:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

  daemon,意思是守护进程,守护进程是否在运行中。

  这种情况通常都是 docker 服务未启动导致,对于这种情况只需要启动或重启 docker 服务即可。