gpt4 book ai didi

更新后 Docker 守护进程无法启动

转载 作者:太空宇宙 更新时间:2023-11-03 17:15:25 26 4
gpt4 key购买 nike

昨晚我的 docker 守护程序更新到版本 18.09.0-ce-tp0,构建 4bb0619,从那时起它无法启动。我以前运行 docker 没有任何问题。操作系统:CentOS Linux 版本 7.5.1804(核心)错误:

Aug 23 20:14:56 my-server-name polkitd[388]: Registered Authentication Agent for unix-process:6198:531754 (system bus name :1.45 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/Po
Aug 23 20:14:56 my-server-name polkitd[388]: Unregistered Authentication Agent for unix-process:6198:531754 (system bus name :1.45, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UT
Aug 23 20:15:02 my-server-name polkitd[388]: Registered Authentication Agent for unix-process:6210:532352 (system bus name :1.46 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/Po
Aug 23 20:15:09 my-server-name containerd-offline-installer[6120]: failed to dial "/run/containerd/containerd.sock": context deadline exceeded
Aug 23 20:15:09 my-server-name systemd[1]: docker.service: control process exited, code=exited status=1
Aug 23 20:15:09 my-server-name systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has failed.
--
-- The result is failed.
Aug 23 20:15:09 my-server-name systemd[1]: Unit docker.service entered failed state.
Aug 23 20:15:09 my-server-name systemd[1]: docker.service failed.
Aug 23 20:15:09 my-server-name polkitd[388]: Unregistered Authentication Agent for unix-process:6210:532352 (system bus name :1.46, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UT
Aug 23 20:15:10 my-server-name systemd[1]: docker.service holdoff time over, scheduling restart.
Aug 23 20:15:10 my-server-name systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has begun starting up.

为了清楚起见,我从 systemctl start docker(或 docker.service)开始,例如docker ps 返回 Cannot connect to the Docker daemon at unix:///var/run/docker.sock。 docker 守护进程是否正在运行?

有什么线索吗?

最佳答案

我通过将 docker 从版本 18.06.1-ce, build e68fc7a 更新到版本 18.09.0~ce~0.4.tp4-0~ubuntu 遇到了同样的问题.我的解决方案是:

1) 移除docker-ce:

sudo apt-get remove docker-ce

2) 移除依赖包:

sudo apt-get autoremove

3)检查docker是否被移除(应该看到docker command not found):

docker -v

4)安装低版本docker:

sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu

5) 检查docker服务是否运行:

sudo service docker status

它对我有用。希望以上解决方案对您有所帮助。

关于更新后 Docker 守护进程无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51993700/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com