Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
这种错误是因为国内把docker的官方源墙了,所以访问不了。
开始换源
而后进入/etc/docker修改daemon.json,如果没有这个json文件就新建一个
1 2 3 4 5
cd /etc/docker # 查看有没有daemon.json文件 ls # 如果没有就新建 touch daemon.json
Job for docker.service failed because start of the service was attempted too often. See “systemctl status docker.service” and “journalctl -xe” for details. To force a start use “systemctl reset-failed docker.service” followed by “systemctl start docker.service” again.
这个错误有可能是daemon.json文件里面可能有语法错误导致启动不了,检查这个文件哪里写错了。
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
这个错误是没有启动docker,启动一下就行了
1
systemctl start docker
Warning: docker.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.