Centos7無法重啟
阿新 • • 發佈:2018-12-18
錯誤提示
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
Active: failed (Result: start-limit) since 二 2018-10-30 16:47:49 CST; 43s ago
docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/docker.service.d └─flannel.conf Active: failed (Result: start-limit) since 二 2018-10-30 16:23:29 CST; 31s ago Docs: https://docs.docker.com Process: 32038 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE) Main PID: 32038 (code=exited, status=1/FAILURE) 10月 30 16:23:29 localhost13 systemd[1]: Unit docker.service entered failed state. 10月 30 16:23:29 localhost13 systemd[1]: docker.service failed. 10月 30 16:23:29 localhost13 systemd[1]: docker.service holdoff time over, scheduling restart. 10月 30 16:23:29 localhost13 systemd[1]: start request repeated too quickly for docker.service 10月 30 16:23:29 localhost13 systemd[1]: Failed to start Docker Application Container Engine. 10月 30 16:23:29 localhost13 systemd[1]: Unit docker.service entered failed state. 10月 30 16:23:29 localhost13 systemd[1]: docker.service failed. 10月 30 16:23:38 localhost13 systemd[1]: start request repeated too quickly for docker.service 10月 30 16:23:38 localhost13 systemd[1]: Failed to start Docker Application Container Engine. 10月 30 16:23:38 localhost13 systemd[1]: docker.service failed.
解決方法
在/etc/docker/daemon.json裡面加入{“storage-driver”:“devicemapper”} 如果沒有daemon.json檔案,直接新建並加入{“storage-driver”:“devicemapper”} 重啟成功