我正在尝试启动Docker守护程序:

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"

最佳答案

systemd的一件有趣的事情是,如果它认为守护程序正在运行,那么start命令将什么都不做。

我必须执行以下操作以确保我完全重启某些守护程序:

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

关于docker - Docker守护程序无法启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39027776/

10-16 16:28