1. 程式人生 > >[問題] docker: Failed to start Docker Application Container Engine.

[問題] docker: Failed to start Docker Application Container Engine.

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/FAILURE
2 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

---------------------

解決方法: 

參考:https://forums.docker.com/t/failed-to-load-listeners-no-sockets-found-via-socket-activation-make-sure-the-service-was-started-by-systemd/62505

# sudo
systemctl edit docker.service

之後編輯: 將其中的fd:// 替換為 unix://

之後儲存退出。

 

測試:

1 $ service docker start
2 $ docker ps -a
3 CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES