[問題] docker: Failed to start Docker Application Container Engine.
阿新 • • 發佈:2018-12-25
docker無法啟動:
1 # systemctl restart docker 2 Job for docker.service failed because the control process exited with error code. 3 See “systemctl status docker.service” and “journalctl -xe” for details.
journalctl -xe的提示資訊為:
1 docker.service: Main process exited, code=exited, status=1/FAILURE2 Failed to start Docker Application Container Engine. 3 docker.service: Unit entered failed state. 4 docker.service: Failed with result 'exit-code'. 5 docker.service: Service hold-off time over, scheduling restart. 6 Stopped Docker Application Container Engine. 7 Starting Docker Application Container Engine...8 Failed to load listeners: no sockets found via socket activation: make sure the service was started by systemd
---------------------
解決方法:
# sudosystemctl edit docker.service
之後編輯: 將其中的fd:// 替換為 unix://
之後儲存退出。
測試:
1 $ service docker start 2 $ docker ps -a 3 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES