当前位置: 首页 > 工具软件 > docker-ce > 使用案例 >

【DockerCE】Docker-CE 20.10.21正式版发布

赵晨
2023-12-01

官网地址(For RHEL/CentOS 7.9):

https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

20.10.21版本官方安装包如下:

# ls -ltr
总用量 109344
-rw-r--r-- 1 root root 22763780 10月 26 21:31 docker-ce-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root 34557312 10月 26 21:31 containerd.io-1.6.9-3.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 30992864 10月 26 21:31 docker-ce-cli-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  8879824 10月 26 21:31 docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root 10758040 10月 26 21:32 docker-compose-plugin-2.12.2-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  4006384 10月 26 21:32 docker-scan-plugin-0.21.0-3.el7.x86_64.rpm

        下载完以上的官方包以后,将上面的包上传到一台可以连接外网CentOS7.9服务器上,然后使用下面的命令来下载依赖包。

# yum install -y --downloadonly --downloaddir=./ *.rpm
已加载插件:fastestmirror, langpacks
正在检查 containerd.io-1.6.9-3.1.el7.x86_64.rpm: containerd.io-1.6.9-3.1.el7.x86_64
containerd.io-1.6.9-3.1.el7.x86_64.rpm 将被安装
正在检查 docker-ce-20.10.21-3.el7.x86_64.rpm: 3:docker-ce-20.10.21-3.el7.x86_64
docker-ce-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-ce-cli-20.10.21-3.el7.x86_64.rpm: 1:docker-ce-cli-20.10.21-3.el7.x86_64
docker-ce-cli-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm: docker-ce-rootless-extras-20.10.21-3.el7.x86_64
docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-compose-plugin-2.12.2-3.el7.x86_64.rpm: docker-compose-plugin-2.12.2-3.el7.x86_64
docker-compose-plugin-2.12.2-3.el7.x86_64.rpm 将被安装
正在检查 docker-scan-plugin-0.21.0-3.el7.x86_64.rpm: docker-scan-plugin-0.21.0-3.el7.x86_64
docker-scan-plugin-0.21.0-3.el7.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.9-3.1.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 containerd.io-1.6.9-3.1.el7.x86_64 需要
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
---> 软件包 docker-ce.x86_64.3.20.10.21-3.el7 将被 安装
--> 正在处理依赖关系 libcgroup,它被软件包 3:docker-ce-20.10.21-3.el7.x86_64 需要
---> 软件包 docker-ce-cli.x86_64.1.20.10.21-3.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.20.10.21-3.el7 将被 安装
--> 正在处理依赖关系 fuse-overlayfs >= 0.7,它被软件包 docker-ce-rootless-extras-20.10.21-3.el7.x86_64 需要
--> 正在处理依赖关系 slirp4netns >= 0.4,它被软件包 docker-ce-rootless-extras-20.10.21-3.el7.x86_64 需要
---> 软件包 docker-compose-plugin.x86_64.0.2.12.2-3.el7 将被 安装
---> 软件包 docker-scan-plugin.x86_64.0.0.21.0-3.el7 将被 安装
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
--> 正在处理依赖关系 policycoreutils-python,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
---> 软件包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安装
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.2)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3(FUSE_3.0)(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在处理依赖关系 libfuse3.so.3()(64bit),它被软件包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
---> 软件包 libcgroup.x86_64.0.0.41-21.el7 将被 安装
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
--> 正在检查事务
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
---> 软件包 policycoreutils-python.x86_64.0.2.5-34.el7 将被 安装
--> 正在处理依赖关系 setools-libs >= 3.3.8-4,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libsemanage-python >= 2.5-14,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 audit-libs-python >= 2.1.3-4,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 python-IPy,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.4)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.2)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4(VERS_4.0)(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 checkpolicy,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1()(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4()(64bit),它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在检查事务
---> 软件包 audit-libs-python.x86_64.0.2.8.5-4.el7 将被 安装
---> 软件包 checkpolicy.x86_64.0.2.5-8.el7 将被 安装
---> 软件包 libsemanage-python.x86_64.0.2.5-14.el7 将被 安装
---> 软件包 python-IPy.noarch.0.0.75-6.el7 将被 安装
---> 软件包 setools-libs.x86_64.0.3.3.8-4.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

===============================================================================================================================================================================================================
 Package                                          架构                          版本                                             源                                                                       大小
===============================================================================================================================================================================================================
正在安装:
 containerd.io                                    x86_64                        1.6.9-3.1.el7                                    /containerd.io-1.6.9-3.1.el7.x86_64                                     112 M
 docker-ce                                        x86_64                        3:20.10.21-3.el7                                 /docker-ce-20.10.21-3.el7.x86_64                                         84 M
 docker-ce-cli                                    x86_64                        1:20.10.21-3.el7                                 /docker-ce-cli-20.10.21-3.el7.x86_64                                    129 M
 docker-ce-rootless-extras                        x86_64                        20.10.21-3.el7                                   /docker-ce-rootless-extras-20.10.21-3.el7.x86_64                         18 M
 docker-compose-plugin                            x86_64                        2.12.2-3.el7                                     /docker-compose-plugin-2.12.2-3.el7.x86_64                               43 M
 docker-scan-plugin                               x86_64                        0.21.0-3.el7                                     /docker-scan-plugin-0.21.0-3.el7.x86_64                                  12 M
为依赖而安装:
 audit-libs-python                                x86_64                        2.8.5-4.el7                                      base                                                                     76 k
 checkpolicy                                      x86_64                        2.5-8.el7                                        base                                                                    295 k
 container-selinux                                noarch                        2:2.119.2-1.911c772.el7_8                        extras                                                                   40 k
 fuse-overlayfs                                   x86_64                        0.7.2-6.el7_8                                    extras                                                                   54 k
 fuse3-libs                                       x86_64                        3.6.1-4.el7                                      extras                                                                   82 k
 libcgroup                                        x86_64                        0.41-21.el7                                      base                                                                     66 k
 libsemanage-python                               x86_64                        2.5-14.el7                                       base                                                                    113 k
 policycoreutils-python                           x86_64                        2.5-34.el7                                       base                                                                    457 k
 python-IPy                                       noarch                        0.75-6.el7                                       base                                                                     32 k
 setools-libs                                     x86_64                        3.3.8-4.el7                                      base                                                                    620 k
 slirp4netns                                      x86_64                        0.4.3-4.el7_8                                    extras                                                                   81 k

事务概要
===============================================================================================================================================================================================================
安装  6 软件包 (+11 依赖软件包)

总计:400 M
总下载量:1.9 M
安装大小:404 M
Background downloading packages, then exiting:
(1/11): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm                                                                                                                            |  40 kB  00:00:00     
(2/11): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm                                                                                                                                         |  54 kB  00:00:00     
(3/11): audit-libs-python-2.8.5-4.el7.x86_64.rpm                                                                                                                                        |  76 kB  00:00:01     
(4/11): fuse3-libs-3.6.1-4.el7.x86_64.rpm                                                                                                                                               |  82 kB  00:00:01     
(5/11): libcgroup-0.41-21.el7.x86_64.rpm                                                                                                                                                |  66 kB  00:00:00     
(6/11): libsemanage-python-2.5-14.el7.x86_64.rpm                                                                                                                                        | 113 kB  00:00:01     
(7/11): checkpolicy-2.5-8.el7.x86_64.rpm                                                                                                                                                | 295 kB  00:00:04     
(8/11): python-IPy-0.75-6.el7.noarch.rpm                                                                                                                                                |  32 kB  00:00:00     
(9/11): slirp4netns-0.4.3-4.el7_8.x86_64.rpm                                                                                                                                            |  81 kB  00:00:01     
(10/11): policycoreutils-python-2.5-34.el7.x86_64.rpm                                                                                                                                   | 457 kB  00:00:06     
(11/11): setools-libs-3.3.8-4.el7.x86_64.rpm                                                                                                                                            | 620 kB  00:00:08     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                                           150 kB/s | 1.9 MB  00:00:12     
exiting because "Download Only" specified

# ls -ltr
总用量 111288
-rw-r--r-- 1 root root    32880 7月   4 2014 python-IPy-0.75-6.el7.noarch.rpm
-rw-r--r-- 1 root root   302068 11月 12 2018 checkpolicy-2.5-8.el7.x86_64.rpm
-rw-r--r-- 1 root root   115284 11月 12 2018 libsemanage-python-2.5-14.el7.x86_64.rpm
-rw-r--r-- 1 root root   635184 11月 12 2018 setools-libs-3.3.8-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    78256 8月  23 2019 audit-libs-python-2.8.5-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    67720 8月  23 2019 libcgroup-0.41-21.el7.x86_64.rpm
-rw-r--r-- 1 root root   468316 4月   4 2020 policycoreutils-python-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root    55796 4月  29 2020 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
-rw-r--r-- 1 root root    83764 4月  29 2020 fuse3-libs-3.6.1-4.el7.x86_64.rpm
-rw-r--r-- 1 root root    83452 4月  29 2020 slirp4netns-0.4.3-4.el7_8.x86_64.rpm
-rw-r--r-- 1 root root    40816 7月   6 2020 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
-rw-r--r-- 1 root root 22763780 10月 26 21:31 docker-ce-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root 34557312 10月 26 21:31 containerd.io-1.6.9-3.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 30992864 10月 26 21:31 docker-ce-cli-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  8879824 10月 26 21:31 docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm
-rw-r--r-- 1 root root 10758040 10月 26 21:32 docker-compose-plugin-2.12.2-3.el7.x86_64.rpm
-rw-r--r-- 1 root root  4006384 10月 26 21:32 docker-scan-plugin-0.21.0-3.el7.x86_64.rpm

        依赖包下载完成后,我们就可以将这个目录打包到任何CentOS或者Redaht 7.9版本的服务器上进行安装了。

# yum install -y *.rpm
已加载插件:fastestmirror, langpacks
正在检查 audit-libs-python-2.8.5-4.el7.x86_64.rpm: audit-libs-python-2.8.5-4.el7.x86_64
audit-libs-python-2.8.5-4.el7.x86_64.rpm 将被安装
正在检查 checkpolicy-2.5-8.el7.x86_64.rpm: checkpolicy-2.5-8.el7.x86_64
checkpolicy-2.5-8.el7.x86_64.rpm 将被安装
正在检查 containerd.io-1.6.9-3.1.el7.x86_64.rpm: containerd.io-1.6.9-3.1.el7.x86_64
containerd.io-1.6.9-3.1.el7.x86_64.rpm 将被安装
正在检查 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm 将被安装
正在检查 docker-ce-20.10.21-3.el7.x86_64.rpm: 3:docker-ce-20.10.21-3.el7.x86_64
docker-ce-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-ce-cli-20.10.21-3.el7.x86_64.rpm: 1:docker-ce-cli-20.10.21-3.el7.x86_64
docker-ce-cli-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm: docker-ce-rootless-extras-20.10.21-3.el7.x86_64
docker-ce-rootless-extras-20.10.21-3.el7.x86_64.rpm 将被安装
正在检查 docker-compose-plugin-2.12.2-3.el7.x86_64.rpm: docker-compose-plugin-2.12.2-3.el7.x86_64
docker-compose-plugin-2.12.2-3.el7.x86_64.rpm 将被安装
正在检查 docker-scan-plugin-0.21.0-3.el7.x86_64.rpm: docker-scan-plugin-0.21.0-3.el7.x86_64
docker-scan-plugin-0.21.0-3.el7.x86_64.rpm 将被安装
正在检查 fuse3-libs-3.6.1-4.el7.x86_64.rpm: fuse3-libs-3.6.1-4.el7.x86_64
fuse3-libs-3.6.1-4.el7.x86_64.rpm 将被安装
正在检查 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm: fuse-overlayfs-0.7.2-6.el7_8.x86_64
fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm 将被安装
正在检查 libcgroup-0.41-21.el7.x86_64.rpm: libcgroup-0.41-21.el7.x86_64
libcgroup-0.41-21.el7.x86_64.rpm 将被安装
正在检查 libsemanage-python-2.5-14.el7.x86_64.rpm: libsemanage-python-2.5-14.el7.x86_64
libsemanage-python-2.5-14.el7.x86_64.rpm 将被安装
正在检查 policycoreutils-python-2.5-34.el7.x86_64.rpm: policycoreutils-python-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64.rpm 将被安装
正在检查 python-IPy-0.75-6.el7.noarch.rpm: python-IPy-0.75-6.el7.noarch
python-IPy-0.75-6.el7.noarch.rpm 将被安装
正在检查 setools-libs-3.3.8-4.el7.x86_64.rpm: setools-libs-3.3.8-4.el7.x86_64
setools-libs-3.3.8-4.el7.x86_64.rpm 将被安装
正在检查 slirp4netns-0.4.3-4.el7_8.x86_64.rpm: slirp4netns-0.4.3-4.el7_8.x86_64
slirp4netns-0.4.3-4.el7_8.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 audit-libs-python.x86_64.0.2.8.5-4.el7 将被 安装
---> 软件包 checkpolicy.x86_64.0.2.5-8.el7 将被 安装
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
---> 软件包 containerd.io.x86_64.0.1.6.9-3.1.el7 将被 安装
---> 软件包 docker-ce.x86_64.3.20.10.21-3.el7 将被 安装
---> 软件包 docker-ce-cli.x86_64.1.20.10.21-3.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.20.10.21-3.el7 将被 安装
---> 软件包 docker-compose-plugin.x86_64.0.2.12.2-3.el7 将被 安装
---> 软件包 docker-scan-plugin.x86_64.0.0.21.0-3.el7 将被 安装
---> 软件包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安装
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
---> 软件包 libcgroup.x86_64.0.0.41-21.el7 将被 安装
---> 软件包 libsemanage-python.x86_64.0.2.5-14.el7 将被 安装
---> 软件包 policycoreutils-python.x86_64.0.2.5-34.el7 将被 安装
---> 软件包 python-IPy.noarch.0.0.75-6.el7 将被 安装
---> 软件包 setools-libs.x86_64.0.3.3.8-4.el7 将被 安装
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
--> 解决依赖关系完成

依赖关系解决

===============================================================================================================================================================================================================
 Package                                         架构                         版本                                               源                                                                       大小
===============================================================================================================================================================================================================
正在安装:
 audit-libs-python                               x86_64                       2.8.5-4.el7                                        /audit-libs-python-2.8.5-4.el7.x86_64                                   316 k
 checkpolicy                                     x86_64                       2.5-8.el7                                          /checkpolicy-2.5-8.el7.x86_64                                           1.2 M
 container-selinux                               noarch                       2:2.119.2-1.911c772.el7_8                          /container-selinux-2.119.2-1.911c772.el7_8.noarch                        41 k
 containerd.io                                   x86_64                       1.6.9-3.1.el7                                      /containerd.io-1.6.9-3.1.el7.x86_64                                     112 M
 docker-ce                                       x86_64                       3:20.10.21-3.el7                                   /docker-ce-20.10.21-3.el7.x86_64                                         84 M
 docker-ce-cli                                   x86_64                       1:20.10.21-3.el7                                   /docker-ce-cli-20.10.21-3.el7.x86_64                                    129 M
 docker-ce-rootless-extras                       x86_64                       20.10.21-3.el7                                     /docker-ce-rootless-extras-20.10.21-3.el7.x86_64                         18 M
 docker-compose-plugin                           x86_64                       2.12.2-3.el7                                       /docker-compose-plugin-2.12.2-3.el7.x86_64                               43 M
 docker-scan-plugin                              x86_64                       0.21.0-3.el7                                       /docker-scan-plugin-0.21.0-3.el7.x86_64                                  12 M
 fuse-overlayfs                                  x86_64                       0.7.2-6.el7_8                                      /fuse-overlayfs-0.7.2-6.el7_8.x86_64                                    116 k
 fuse3-libs                                      x86_64                       3.6.1-4.el7                                        /fuse3-libs-3.6.1-4.el7.x86_64                                          270 k
 libcgroup                                       x86_64                       0.41-21.el7                                        /libcgroup-0.41-21.el7.x86_64                                           134 k
 libsemanage-python                              x86_64                       2.5-14.el7                                         /libsemanage-python-2.5-14.el7.x86_64                                   441 k
 policycoreutils-python                          x86_64                       2.5-34.el7                                         /policycoreutils-python-2.5-34.el7.x86_64                               1.2 M
 python-IPy                                      noarch                       0.75-6.el7                                         /python-IPy-0.75-6.el7.noarch                                           119 k
 setools-libs                                    x86_64                       3.3.8-4.el7                                        /setools-libs-3.3.8-4.el7.x86_64                                        1.8 M
 slirp4netns                                     x86_64                       0.4.3-4.el7_8                                      /slirp4netns-0.4.3-4.el7_8.x86_64                                       169 k

事务概要
===============================================================================================================================================================================================================
安装  17 软件包

总计:404 M
安装大小:404 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : libcgroup-0.41-21.el7.x86_64                                                                                                                                                              1/17 
  正在安装    : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                                           2/17 
  正在安装    : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                                                      3/17 
  正在安装    : slirp4netns-0.4.3-4.el7_8.x86_64                                                                                                                                                          4/17 
  正在安装    : python-IPy-0.75-6.el7.noarch                                                                                                                                                              5/17 
  正在安装    : docker-scan-plugin-0.21.0-3.el7.x86_64                                                                                                                                                    6/17 
  正在安装    : 1:docker-ce-cli-20.10.21-3.el7.x86_64                                                                                                                                                     7/17 
  正在安装    : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                                      8/17 
  正在安装    : fuse3-libs-3.6.1-4.el7.x86_64                                                                                                                                                             9/17 
  正在安装    : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                                                                                                                      10/17 
  正在安装    : checkpolicy-2.5-8.el7.x86_64                                                                                                                                                             11/17 
  正在安装    : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                                                 12/17 
  正在安装    : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                                                       13/17 
setsebool:  SELinux is disabled.
  正在安装    : containerd.io-1.6.9-3.1.el7.x86_64                                                                                                                                                       14/17 
  正在安装    : docker-ce-rootless-extras-20.10.21-3.el7.x86_64                                                                                                                                          15/17 
  正在安装    : 3:docker-ce-20.10.21-3.el7.x86_64                                                                                                                                                        16/17 
  正在安装    : docker-compose-plugin-2.12.2-3.el7.x86_64                                                                                                                                                17/17 
  验证中      : checkpolicy-2.5-8.el7.x86_64                                                                                                                                                              1/17 
  验证中      : fuse3-libs-3.6.1-4.el7.x86_64                                                                                                                                                             2/17 
  验证中      : 1:docker-ce-cli-20.10.21-3.el7.x86_64                                                                                                                                                     3/17 
  验证中      : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                                      4/17 
  验证中      : fuse-overlayfs-0.7.2-6.el7_8.x86_64                                                                                                                                                       5/17 
  验证中      : containerd.io-1.6.9-3.1.el7.x86_64                                                                                                                                                        6/17 
  验证中      : docker-scan-plugin-0.21.0-3.el7.x86_64                                                                                                                                                    7/17 
  验证中      : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch                                                                                                                                        8/17 
  验证中      : python-IPy-0.75-6.el7.noarch                                                                                                                                                              9/17 
  验证中      : docker-compose-plugin-2.12.2-3.el7.x86_64                                                                                                                                                10/17 
  验证中      : slirp4netns-0.4.3-4.el7_8.x86_64                                                                                                                                                         11/17 
  验证中      : policycoreutils-python-2.5-34.el7.x86_64                                                                                                                                                 12/17 
  验证中      : docker-ce-rootless-extras-20.10.21-3.el7.x86_64                                                                                                                                          13/17 
  验证中      : audit-libs-python-2.8.5-4.el7.x86_64                                                                                                                                                     14/17 
  验证中      : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                                          15/17 
  验证中      : 3:docker-ce-20.10.21-3.el7.x86_64                                                                                                                                                        16/17 
  验证中      : libcgroup-0.41-21.el7.x86_64                                                                                                                                                             17/17 

已安装:
  audit-libs-python.x86_64 0:2.8.5-4.el7         checkpolicy.x86_64 0:2.5-8.el7                   container-selinux.noarch 2:2.119.2-1.911c772.el7_8       containerd.io.x86_64 0:1.6.9-3.1.el7             
  docker-ce.x86_64 3:20.10.21-3.el7              docker-ce-cli.x86_64 1:20.10.21-3.el7            docker-ce-rootless-extras.x86_64 0:20.10.21-3.el7        docker-compose-plugin.x86_64 0:2.12.2-3.el7      
  docker-scan-plugin.x86_64 0:0.21.0-3.el7       fuse-overlayfs.x86_64 0:0.7.2-6.el7_8            fuse3-libs.x86_64 0:3.6.1-4.el7                          libcgroup.x86_64 0:0.41-21.el7                   
  libsemanage-python.x86_64 0:2.5-14.el7         policycoreutils-python.x86_64 0:2.5-34.el7       python-IPy.noarch 0:0.75-6.el7                           setools-libs.x86_64 0:3.3.8-4.el7                
  slirp4netns.x86_64 0:0.4.3-4.el7_8            

完毕!

启动和运行docker服务

# systemctl enable docker.service docker.socket containerd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
Created symlink from /etc/systemd/system/sockets.target.wants/docker.socket to /usr/lib/systemd/system/docker.socket.
Created symlink from /etc/systemd/system/multi-user.target.wants/containerd.service to /usr/lib/systemd/system/containerd.service.

# systemctl start docker.service docker.socket containerd.service

# systemctl status docker.service docker.socket containerd.service 
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since 四 2022-10-27 08:01:29 CST; 5s ago
     Docs: https://docs.docker.com
 Main PID: 1613 (dockerd)
    Tasks: 10
   Memory: 26.5M
   CGroup: /system.slice/docker.service
           └─1613 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.005304011+08:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.005318851+08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <n...}" module=grpc
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.005334287+08:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.119773346+08:00" level=info msg="Loading containers: start."
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.359464445+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option -...ed IP address"
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.427188624+08:00" level=info msg="Loading containers: done."
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.452587045+08:00" level=info msg="Docker daemon" commit=3056208 graphdriver(s)=overlay2 version=20.10.21
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.452698598+08:00" level=info msg="Daemon has completed initialization"
10月 27 08:01:29 ansible-awx systemd[1]: Started Docker Application Container Engine.
10月 27 08:01:29 ansible-awx dockerd[1613]: time="2022-10-27T08:01:29.511883328+08:00" level=info msg="API listen on /var/run/docker.sock"

● docker.socket - Docker Socket for the API
   Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
   Active: active (running) since 四 2022-10-27 08:01:28 CST; 6s ago
   Listen: /var/run/docker.sock (Stream)

10月 27 08:01:28 ansible-awx systemd[1]: Starting Docker Socket for the API.
10月 27 08:01:28 ansible-awx systemd[1]: Listening on Docker Socket for the API.

● containerd.service - containerd container runtime
   Loaded: loaded (/usr/lib/systemd/system/containerd.service; disabled; vendor preset: disabled)
   Active: active (running) since 四 2022-10-27 08:01:28 CST; 6s ago
     Docs: https://containerd.io
  Process: 1597 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
 Main PID: 1602 (containerd)
    Tasks: 10
   Memory: 18.2M
   CGroup: /system.slice/containerd.service
           └─1602 /usr/bin/containerd

10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880737162+08:00" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880746471+08:00" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880755040+08:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tr....processor.v1
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880765637+08:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTe....processor.v1
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880773562+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880793153+08:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880952756+08:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.880977002+08:00" level=info msg=serving... address=/run/containerd/containerd.sock
10月 27 08:01:28 ansible-awx containerd[1602]: time="2022-10-27T08:01:28.881008415+08:00" level=info msg="containerd successfully booted in 0.023830s"
10月 27 08:01:28 ansible-awx systemd[1]: Started containerd container runtime.
Hint: Some lines were ellipsized, use -l to show in full.

检查docker版本信息

# docker version
Client: Docker Engine - Community
 Version:           20.10.21
 API version:       1.41
 Go version:        go1.18.7
 Git commit:        baeda1f
 Built:             Tue Oct 25 18:04:24 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.21
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.7
  Git commit:       3056208
  Built:            Tue Oct 25 18:02:38 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.9
  GitCommit:        1c90a442489720eec95342e1789ee8a5e1b9536f
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

# docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  compose: Docker Compose (Docker Inc., v2.12.2)
  scan: Docker Scan (Docker Inc., v0.21.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.21
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-1160.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.777GiB
 Name: ansible-awx
 ID: 5EO2:YQTQ:S5DA:6JNH:GSWX:2X3K:U6CZ:JWXO:ZJHN:N555:6VAC:GHYZ
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 类似资料: