docker启动时,报错
:
cannnot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
或者
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
解决方法:
看看是否是daemon.json 中镜像仓库是否修改正确
1.位置:
/etc/docker/daemon.json
2.修改:
{
“registry-mirrors”: [“https://aa25jngu.mirror.aliyuncs.com”],
“insecure-registries”: [“192.168.111.162:5000”]
}
上述中:
192.168.111.162:5000 ip及端口,要改成自己的。