calvinyu 使用 KubeSphere all-in-one 模式安装,docker 客户端与服务端版本号不一致。通过增加 /etc/docker/daemon.json 文件配置镜像源,docker重启失败。

`[root@ks-allinone docker]# systemctl restart docker
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
[root@ks-allinone docker]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─docker-dns.conf, docker-options.conf
Active: failed (Result: start-limit) since 四 2020-07-30 10:03:47 PDT; 11s ago
Docs: http://docs.docker.com
Process: 39251 ExecStart=/usr/bin/dockerd –registry-mirror=https://registry.docker-cn.com $DOCKER_OPTS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $INSECURE_REGISTRY (code=exited, status=1/FAILURE)
Main PID: 39251 (code=exited, status=1/FAILURE)
Tasks: 20
Memory: 154.8M
CGroup: /system.slice/docker.service
├─38712 containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/e9514751c53a2fb2699d8c039cb7f989ca028f…
└─38901 containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/ec1ab74c137b0a39b494772c7a7e03593d2db0…
7月 30 10:03:47 ks-allinone systemd[1]: docker.service failed.
7月 30 10:03:47 ks-allinone systemd[1]: start request repeated too quickly for docker.service
7月 30 10:03:47 ks-allinone systemd[1]: Failed to start Docker Application Container Engine.
7月 30 10:03:47 ks-allinone systemd[1]: docker.service failed.
7月 30 10:03:53 ks-allinone systemd[1]: start request repeated too quickly for docker.service
7月 30 10:03:53 ks-allinone systemd[1]: Failed to start Docker Application Container Engine.
7月 30 10:03:53 ks-allinone systemd[1]: docker.service failed.
7月 30 10:03:53 ks-allinone systemd[1]: start request repeated too quickly for docker.service
7月 30 10:03:53 ks-allinone systemd[1]: Failed to start Docker Application Container Engine.
7月 30 10:03:53 ks-allinone systemd[1]: docker.service failed.`