错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running
执行docker ps时提示
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决方法 可能是由于配置了远程访问导致
/etc/systemd/system/multi-user.target.wants/docker.service 查看配置
追加配置 -H unix:///var/run/docker.sock
再次执行命令重启docker即可
systemctl daemon-reload
service docker restart
错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running最先出现在Python成神之路。
共有 0 条评论