1、执行docker的任意命令,出现以下提示:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
先停止服务(systemctl stop docker),再启动(systemctl start docker)
2、执行命令 systemctl stop docker时出现:
Warning: Stopping docker.service, but it can still be activated by:docker.socket
执行命令:systemctl stop docker.socket 后再执行停止命令