CentOS Stream9 Mini 版本 Docker 启动失败,使用 systemctl status docker.service 查看服务状态信息如下:
[root@centos9 ~]# systemctl status docker.service × docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2025-12-27 21:12:06 CST; 10s ago TriggeredBy: × docker.socket Docs: https://docs.docker.com Process: 69306 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=127) Main PID: 69306 (code=exited, status=127) CPU: 9ms Dec 27 21:12:06 centos9 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3. Dec 27 21:12:06 centos9 systemd[1]: Stopped Docker Application Container Engine. Dec 27 21:12:06 centos9 systemd[1]: docker.service: Start request repeated too quickly. Dec 27 21:12:06 centos9 systemd[1]: docker.service: Failed with result 'exit-code'. Dec 27 21:12:06 centos9 systemd[1]: Failed to start Docker Application Container Engine.
网上找了很多方法都没有成功,也重新安装依然失败。
最后,试着使用 dnf update -y 命令升级系统现有包,如下:
# 升级系统现有包 dnf update -y
当更新完成后,再使用 systemctl start docker 命令试着启动 Docker 服务,成功了,如下:
[root@centos9 ~]# systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; preset: disabled) Active: active (running) since Sat 2025-12-27 21:48:57 CST; 50s ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Main PID: 163425 (dockerd) Tasks: 8 Memory: 41.3M CPU: 839ms CGroup: /system.slice/docker.service └─163425 /usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock Dec 27 21:48:56 centos9 dockerd[163425]: time="2025-12-27T21:48:56.627629146+08:00" level=info msg="Deleting nftables IPv6 rules" error="exit status 1" Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.408532400+08:00" level=info msg="Loading containers: done." Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.448272480+08:00" level=warning msg="[DEPRECATION NOTICE]: API is accessible on http://0.0.0.0:2375 without encryptio> Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.448422985+08:00" level=info msg="Docker daemon" commit=fbf3ed2 containerd-snapshotter=false storage-driver=overlay2 > Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.448537728+08:00" level=info msg="Initializing buildkit" Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.510661302+08:00" level=info msg="Completed buildkit initialization" Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.523218999+08:00" level=info msg="Daemon has completed initialization" Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.523613015+08:00" level=info msg="API listen on /var/run/docker.sock" Dec 27 21:48:57 centos9 dockerd[163425]: time="2025-12-27T21:48:57.525862823+08:00" level=info msg="API listen on [::]:2375" Dec 27 21:48:57 centos9 systemd[1]: Started Docker Application Container Engine.
如果你也遇到类似的问题,不妨试试。