2016-08-18 83 views
0

我試圖啓動碼頭工人守護進程:碼頭工人守護進程沒有啓動

sudo systemctl start docker 

但沒有任何反應,光標閃爍剛和過程永遠不會結束。

昨天有正常工作:(

sudo journalctl -fu docker 

ago 18 16:05:24 host docker[1602]: time="2016-08-18T16:05:24.467635627-05:00" level=info msg="New containerd process, pid: 1609\n" 
ago 18 16:05:24 host docker[1602]: time="2016-08-18T16:05:24.482107319-05:00" level=fatal msg="bad listen address format /var/run/docker/libcontainerd/docker-containerd.sock, expected proto://address" 
ago 18 16:05:30 host docker[1602]: time="2016-08-18T16:05:30.470570243-05:00" level=info msg="New containerd process, pid: 1620\n" 
ago 18 16:05:30 host docker[1602]: time="2016-08-18T16:05:30.491495106-05:00" level=fatal msg="bad listen address format /var/run/docker/libcontainerd/docker-containerd.sock, expected proto://address" 
ago 18 16:08:06 host systemd[1]: Stopped Docker Application Container Engine. 
-- Reboot -- 
ago 18 16:16:52 host systemd[1]: Starting Docker Application Container Engine... 
ago 18 16:16:54 host docker[2294]: time="2016-08-18T16:16:54.360878396-05:00" level=info msg="New containerd process, pid: 2327\n" 
ago 18 16:16:54 host docker[2294]: time="2016-08-18T16:16:54.686503187-05:00" level=fatal msg="bad listen address format /var/run/docker/libcontainerd/docker-containerd.sock, expected proto://address" 
ago 18 16:17:00 host docker[2294]: time="2016-08-18T16:17:00.664023288-05:00" level=info msg="New containerd process, pid: 2368\n" 
ago 18 16:17:00 host docker[2294]: time="2016-08-18T16:17:00.67708602-05:00" level=fatal msg="bad listen address format /var/run/docker/libcontainerd/docker-containerd.sock, expected proto://address" 
+1

'須藤journalctl-FU docker' – BMitch

+1

貌似泊塢窗重啓,你開始CLI只是沒有給你提示。你有沒有嘗試'碼頭信息'來查看你是否可以連接? – BMitch

+0

@BMitch這是解決方案https://bbs.archlinux.org/viewtopic.php?id=216046謝謝 – alvarezsh

回答

0

一個有趣事情與systemd是,如果它認爲一個守護進程正在運行,則啓動命令不執行任何操作。

我有做到以下幾點,以確保我乾淨重啓某些守護程序:

sudo systemctl stop service-name 

# wait a little if the service is slow to stop like the Cassandra database 

sudo systemctl start service-name 

這對我來說已經適用於各種服務。要知道

一種方式的服務是否被認爲是運行時,被檢查,像這樣的狀態:

systemctl status service-name