docker服务启动 Failed to start : Unit not found.

时间:2025-01-24 10:16:34
[root@localhost docker-ce]# docker images
Cannot connect to the Docker daemon at unix:///var/run/. Is the docker daemon running?
[root@localhost docker-ce]# service docker start
Redirecting to /bin/systemctl start 
Failed to start : Unit not found.
-bash-4.2# ll
total 120712
-rw-r--r-- 1 root root   104408 May 19 09:37 audit-libs-2.8.5-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    78256 May 19 09:37 audit-libs-python-2.8.5-4.el7.x86_64.rpm
-rw-r--r-- 1 root root 35130608 Jan 19 20:01 -1.4.6-3.1.el7.x86_64.rpm
-rw-r--r-- 1 root root    40816 Jan 19 20:01 container-selinux-2.119.2-1.911c772.el7_8.
-rw-r--r-- 1 root root 27902344 May 19 09:37 docker-ce-20.10.7-3.el7.x86_64 (1).rpm
-rw-r--r-- 1 root root 34717572 May 19 09:37 docker-ce-cli-20.10.7-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  9659320 May 19 09:37 docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  4373740 May 19 09:37 docker-scan-plugin-0.8.0-3.el7.x86_64.rpm
-rw-r--r-- 1 root root    83764 May 19 09:37 fuse3-libs-3.6.1-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    95424 May 19 09:37 fuse-libs-2.9.2-11.el7.x86_64.rpm
-rw-r--r-- 1 root root    55796 May 19 09:37 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
-rw-r--r-- 1 root root    67720 May 19 09:37 libcgroup-0.41-21.el7.x86_64.rpm
-rw-r--r-- 1 root root   101800 May 19 09:37 libcgroup-tools-0.41-21.el7.x86_64.rpm
-rw-r--r-- 1 root root    56824 May 19 09:37 libnetfilter_conntrack-1.0.6-1.el7_3.x86_64.rpm
-rw-r--r-- 1 root root    57460 May 19 09:37 libseccomp-2.3.1-4.el7.x86_64.rpm
-rw-r--r-- 1 root root   166012 May 19 09:37 libselinux-2.5-15.el7.x86_64.rpm
-rw-r--r-- 1 root root   154876 May 19 09:37 libselinux-utils-2.5-15.el7.x86_64.rpm
-rw-r--r-- 1 root root   154244 May 19 09:37 libsemanage-2.5-14.el7.x86_64.rpm
-rw-r--r-- 1 root root   115284 May 19 09:37 libsemanage-python-2.5-14.el7.x86_64.rpm
-rw-r--r-- 1 root root   304196 May 19 09:37 libsepol-2.5-10.el7.x86_64.rpm
-rw-r--r-- 1 root root    78740 May 19 09:37 libsepol-devel-2.5-10.el7.x86_64 (1).rpm
-rw-r--r-- 1 root root    78740 May 19 09:37 libsepol-devel-2.5-10.el7.x86_64.rpm
-rw-r--r-- 1 root root   938736 May 19 09:37 policycoreutils-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root   468316 May 19 09:37 policycoreutils-python-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root   509568 May 19 09:37 selinux-policy-3.13.1-268.el7_9.
-rw-r--r-- 1 root root  7335504 May 19 09:37 selinux-policy-targeted-3.13.1-268.el7_9.
-rw-r--r-- 1 root root   635184 May 19 09:37 setools-libs-3.3.8-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    83452 May 19 09:37 slirp4netns-0.4.3-4.el7_8.x86_64.rpm

不能少 container*

rpm -ivh * --force --nodeps