Docker的安装

Docker的安装与部署

Docker的概念以及作用这里就不再赘述了,我么直接开始动手进行安装步骤。

系统要求:

Docker 运行在 CentOS 7 上,要求系统为64位、系统内核版本为 3.10 以上。
Docker 运行在 CentOS-6.5 或更高的版本的 CentOS 上,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。


使用 uname -a 命令可以查看当前的系统版本


uname -a

安装Docker

安装Docker的方式都很多种,下面简单介绍两种
1.第一种是采用官方提供的安装脚本进行安装(需要登录管理员账户进行,使用su命令可以切换账户)

curl -sSL https://get.docker.com/ | sh


执行成功以后,docker会自动安装完毕,但是由于网络原因,这个过程会比较慢,可以采用阿里云的安装脚本

curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/
docker-engine/internet | sh -

2.采用yum install命令安装

[root@localhost javaleaf]# yum install -y docker
已加载插件:fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                     | 3.6 kB     00:00     
extras                                                   | 2.9 kB     00:00     
updates                                                  | 2.9 kB     00:00     
(1/4): base/7/x86_64/group_gz                              | 153 kB   00:00     
(2/4): updates/7/x86_64/primary_db                         | 3.8 MB   00:00     
(3/4): extras/7/x86_64/primary_db                          | 206 kB   00:00     
(4/4): base/7/x86_64/primary_db                            | 6.1 MB   00:01     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.163.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.13.1-162.git64e9980.el7.centos,它被软件包 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.13.1-162.git64e9980.el7.centos,它被软件包 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 subscription-manager-rhsm-certificates,它被软件包 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker-client.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 安装
---> 软件包 docker-common.x86_64.2.1.13.1-162.git64e9980.el7.centos 将被 安装
--> 正在处理依赖关系 skopeo-containers >= 1:0.1.26-2,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-umount >= 2:2.3.3-3,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-systemd-hook >= 1:0.1.4-9,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-register-machine >= 1:0-5.13,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-storage-setup >= 0.9.0-1,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-selinux >= 2:2.51-1,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
--> 正在处理依赖关系 atomic-registries,它被软件包 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64 需要
---> 软件包 subscription-manager-rhsm-certificates.x86_64.0.1.24.26-4.el7.centos 将被 安装
--> 正在检查事务
---> 软件包 atomic-registries.x86_64.1.1.22.1-33.gitb507039.el7_8 将被 安装
--> 正在处理依赖关系 python-yaml,它被软件包 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 需要
--> 正在处理依赖关系 python-pytoml,它被软件包 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 需要
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
--> 正在处理依赖关系 selinux-policy-targeted >= 3.13.1-216.el7,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
--> 正在处理依赖关系 selinux-policy-base >= 3.13.1-216.el7,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
--> 正在处理依赖关系 selinux-policy >= 3.13.1-216.el7,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
--> 正在处理依赖关系 policycoreutils >= 2.5-11,它被软件包 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 需要
---> 软件包 container-storage-setup.noarch.0.0.11.0-2.git5eaf76c.el7 将被 安装
---> 软件包 containers-common.x86_64.1.0.1.40-11.el7_8 将被 安装
--> 正在处理依赖关系 subscription-manager,它被软件包 1:containers-common-0.1.40-11.el7_8.x86_64 需要
--> 正在处理依赖关系 slirp4netns,它被软件包 1:containers-common-0.1.40-11.el7_8.x86_64 需要
--> 正在处理依赖关系 fuse-overlayfs,它被软件包 1:containers-common-0.1.40-11.el7_8.x86_64 需要
---> 软件包 oci-register-machine.x86_64.1.0-6.git2b44233.el7 将被 安装
---> 软件包 oci-systemd-hook.x86_64.1.0.2.0-1.git05e6923.el7_6 将被 安装
---> 软件包 oci-umount.x86_64.2.2.5-3.el7 将被 安装
--> 正在检查事务
---> 软件包 PyYAML.x86_64.0.3.10-11.el7 将被 安装
--> 正在处理依赖关系 libyaml-0.so.2()(64bit),它被软件包 PyYAML-3.10-11.el7.x86_64 需要
---> 软件包 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 需要
---> 软件包 policycoreutils.x86_64.0.2.5-8.el7 将被 升级
--> 正在处理依赖关系 policycoreutils = 2.5-8.el7,它被软件包 policycoreutils-python-2.5-8.el7.x86_64 需要
---> 软件包 policycoreutils.x86_64.0.2.5-34.el7 将被 更新
--> 正在处理依赖关系 libsepol >= 2.5-10,它被软件包 policycoreutils-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libsemanage >= 2.5-14,它被软件包 policycoreutils-2.5-34.el7.x86_64 需要
--> 正在处理依赖关系 libselinux-utils >= 2.5-14,它被软件包 policycoreutils-2.5-34.el7.x86_64 需要
---> 软件包 python-pytoml.noarch.0.0.1.14-1.git7dea353.el7 将被 安装
---> 软件包 selinux-policy.noarch.0.3.13.1-102.el7 将被 升级
---> 软件包 selinux-policy.noarch.0.3.13.1-266.el7_8.1 将被 更新
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-102.el7 将被 升级
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-266.el7_8.1 将被 更新
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
---> 软件包 subscription-manager.x86_64.0.1.24.26-4.el7.centos 将被 安装
--> 正在处理依赖关系 subscription-manager-rhsm = 1.24.26,它被软件包 subscription-manager-1.24.26-4.el7.centos.x86_64 需要
--> 正在处理依赖关系 python-dmidecode >= 3.12.2-2,它被软件包 subscription-manager-1.24.26-4.el7.centos.x86_64 需要
--> 正在处理依赖关系 python-syspurpose,它被软件包 subscription-manager-1.24.26-4.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
---> 软件包 libselinux-utils.x86_64.0.2.5-6.el7 将被 升级
---> 软件包 libselinux-utils.x86_64.0.2.5-15.el7 将被 更新
--> 正在处理依赖关系 libselinux(x86-64) = 2.5-15.el7,它被软件包 libselinux-utils-2.5-15.el7.x86_64 需要
---> 软件包 libsemanage.x86_64.0.2.5-4.el7 将被 升级
--> 正在处理依赖关系 libsemanage = 2.5-4.el7,它被软件包 libsemanage-python-2.5-4.el7.x86_64 需要
---> 软件包 libsemanage.x86_64.0.2.5-14.el7 将被 更新
---> 软件包 libsepol.x86_64.0.2.5-6.el7 将被 升级
---> 软件包 libsepol.x86_64.0.2.5-10.el7 将被 更新
---> 软件包 libyaml.x86_64.0.0.1.4-11.el7_0 将被 安装
---> 软件包 policycoreutils-python.x86_64.0.2.5-8.el7 将被 升级
---> 软件包 policycoreutils-python.x86_64.0.2.5-34.el7 将被 更新
--> 正在处理依赖关系 setools-libs >= 3.3.8-4,它被软件包 policycoreutils-python-2.5-34.el7.x86_64 需要
---> 软件包 python-dmidecode.x86_64.0.3.10.13-11.el7 将被 升级
---> 软件包 python-dmidecode.x86_64.0.3.12.2-4.el7 将被 更新
---> 软件包 python-syspurpose.x86_64.0.1.24.26-4.el7.centos 将被 安装
---> 软件包 subscription-manager-rhsm.x86_64.0.1.24.26-4.el7.centos 将被 安装
--> 正在检查事务
---> 软件包 libselinux.x86_64.0.2.5-6.el7 将被 升级
--> 正在处理依赖关系 libselinux(x86-64) = 2.5-6.el7,它被软件包 libselinux-python-2.5-6.el7.x86_64 需要
---> 软件包 libselinux.x86_64.0.2.5-15.el7 将被 更新
---> 软件包 libsemanage-python.x86_64.0.2.5-4.el7 将被 升级
---> 软件包 libsemanage-python.x86_64.0.2.5-14.el7 将被 更新
---> 软件包 setools-libs.x86_64.0.3.3.8-1.1.el7 将被 升级
---> 软件包 setools-libs.x86_64.0.3.3.8-4.el7 将被 更新
--> 正在检查事务
---> 软件包 libselinux-python.x86_64.0.2.5-6.el7 将被 升级
---> 软件包 libselinux-python.x86_64.0.2.5-15.el7 将被 更新
--> 解决依赖关系完成

依赖关系解决

================================================================================
 Package                架构   版本                               源       大小
================================================================================
正在安装:
 docker                 x86_64 2:1.13.1-162.git64e9980.el7.centos extras   18 M
为依赖而安装:
 PyYAML                 x86_64 3.10-11.el7                        base    153 k
 atomic-registries      x86_64 1:1.22.1-33.gitb507039.el7_8       extras   36 k
 container-selinux      noarch 2:2.119.2-1.911c772.el7_8          extras   40 k
 container-storage-setup
                        noarch 0.11.0-2.git5eaf76c.el7            extras   35 k
 containers-common      x86_64 1:0.1.40-11.el7_8                  extras   43 k
 docker-client          x86_64 2:1.13.1-162.git64e9980.el7.centos extras  3.9 M
 docker-common          x86_64 2:1.13.1-162.git64e9980.el7.centos extras   99 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
 libyaml                x86_64 0.1.4-11.el7_0                     base     55 k
 oci-register-machine   x86_64 1:0-6.git2b44233.el7               extras  1.1 M
 oci-systemd-hook       x86_64 1:0.2.0-1.git05e6923.el7_6         extras   34 k
 oci-umount             x86_64 2:2.5-3.el7                        extras   33 k
 python-pytoml          noarch 0.1.14-1.git7dea353.el7            extras   18 k
 python-syspurpose      x86_64 1.24.26-4.el7.centos               updates 269 k
 slirp4netns            x86_64 0.4.3-4.el7_8                      extras   81 k
 subscription-manager   x86_64 1.24.26-4.el7.centos               updates 1.1 M
 subscription-manager-rhsm
                        x86_64 1.24.26-4.el7.centos               updates 328 k
 subscription-manager-rhsm-certificates
                        x86_64 1.24.26-4.el7.centos               updates 232 k
为依赖而更新:
 libselinux             x86_64 2.5-15.el7                         base    162 k
 libselinux-python      x86_64 2.5-15.el7                         base    236 k
 libselinux-utils       x86_64 2.5-15.el7                         base    151 k
 libsemanage            x86_64 2.5-14.el7                         base    151 k
 libsemanage-python     x86_64 2.5-14.el7                         base    113 k
 libsepol               x86_64 2.5-10.el7                         base    297 k
 policycoreutils        x86_64 2.5-34.el7                         base    917 k
 policycoreutils-python x86_64 2.5-34.el7                         base    457 k
 python-dmidecode       x86_64 3.12.2-4.el7                       base     83 k
 selinux-policy         noarch 3.13.1-266.el7_8.1                 updates 497 k
 selinux-policy-targeted
                        noarch 3.13.1-266.el7_8.1                 updates 7.0 M
 setools-libs           x86_64 3.3.8-4.el7                        base    620 k

事务概要
================================================================================
安装  1 软件包 (+19 依赖软件包)
升级           ( 12 依赖软件包)

总计:36 M
总下载量:35 M
Downloading packages:
No Presto metadata available for base
No Presto metadata available for updates
(1/28): PyYAML-3.10-11.el7.x86_64.rpm                      | 153 kB   00:00     
(2/28): atomic-registries-1.22.1-33.gitb507039.el7_8.x86_6 |  36 kB   00:00     
(3/28): container-storage-setup-0.11.0-2.git5eaf76c.el7.no |  35 kB   00:00     
(4/28): container-selinux-2.119.2-1.911c772.el7_8.noarch.r |  40 kB   00:00     
(5/28): docker-common-1.13.1-162.git64e9980.el7.centos.x86 |  99 kB   00:00     
(6/28): fuse3-libs-3.6.1-4.el7.x86_64.rpm                  |  82 kB   00:00     
(7/28): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm            |  54 kB   00:00     
(8/28): libselinux-2.5-15.el7.x86_64.rpm                   | 162 kB   00:00     
(9/28): docker-client-1.13.1-162.git64e9980.el7.centos.x86 | 3.9 MB   00:00     
(10/28): libselinux-python-2.5-15.el7.x86_64.rpm           | 236 kB   00:00     
(11/28): libselinux-utils-2.5-15.el7.x86_64.rpm            | 151 kB   00:00     
(12/28): oci-register-machine-0-6.git2b44233.el7.x86_64.rp | 1.1 MB   00:00     
(13/28): libyaml-0.1.4-11.el7_0.x86_64.rpm                 |  55 kB   00:00     
(14/28): oci-umount-2.5-3.el7.x86_64.rpm                   |  33 kB   00:00     
(15/28): containers-common-0.1.40-11.el7_8.x86_64.rpm      |  43 kB   00:00     
(16/28): oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64. |  34 kB   00:00     
(17/28): policycoreutils-python-2.5-34.el7.x86_64.rpm      | 457 kB   00:00     
(18/28): python-dmidecode-3.12.2-4.el7.x86_64.rpm          |  83 kB   00:00     
(19/28): selinux-policy-3.13.1-266.el7_8.1.noarch.rpm      | 497 kB   00:00     
(20/28): python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm  |  18 kB   00:00     
(21/28): slirp4netns-0.4.3-4.el7_8.x86_64.rpm              |  81 kB   00:00     
(22/28): python-syspurpose-1.24.26-4.el7.centos.x86_64.rpm | 269 kB   00:00     
(23/28): policycoreutils-2.5-34.el7.x86_64.rpm             | 917 kB   00:00     
(24/28): subscription-manager-rhsm-1.24.26-4.el7.centos.x8 | 328 kB   00:00     
(25/28): subscription-manager-rhsm-certificates-1.24.26-4. | 232 kB   00:00     
(26/28): selinux-policy-targeted-3.13.1-266.el7_8.1.noarch | 7.0 MB   00:00     
(27/28): subscription-manager-1.24.26-4.el7.centos.x86_64. | 1.1 MB   00:01     
(28/28): docker-1.13.1-162.git64e9980.el7.centos.x86_64.rp |  18 MB   00:03     
--------------------------------------------------------------------------------
总计                                               9.9 MB/s |  35 MB  00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在更新    : libsepol-2.5-10.el7.x86_64                                 1/44 
  正在更新    : libselinux-2.5-15.el7.x86_64                               2/44 
  正在更新    : libsemanage-2.5-14.el7.x86_64                              3/44 
  正在更新    : libselinux-utils-2.5-15.el7.x86_64                         4/44 
  正在更新    : policycoreutils-2.5-34.el7.x86_64                          5/44 
  正在更新    : selinux-policy-3.13.1-266.el7_8.1.noarch                   6/44 
  正在安装    : subscription-manager-rhsm-certificates-1.24.26-4.el7.ce    7/44 
  正在安装    : subscription-manager-rhsm-1.24.26-4.el7.centos.x86_64      8/44 
  正在更新    : selinux-policy-targeted-3.13.1-266.el7_8.1.noarch          9/44 
  正在更新    : libsemanage-python-2.5-14.el7.x86_64                      10/44 
  正在更新    : libselinux-python-2.5-15.el7.x86_64                       11/44 
  正在更新    : setools-libs-3.3.8-4.el7.x86_64                           12/44 
  正在更新    : policycoreutils-python-2.5-34.el7.x86_64                  13/44 
  正在安装    : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch        14/44 
  正在安装    : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64        15/44 
  正在安装    : python-syspurpose-1.24.26-4.el7.centos.x86_64             16/44 
  正在更新    : python-dmidecode-3.12.2-4.el7.x86_64                      17/44 
  正在安装    : subscription-manager-1.24.26-4.el7.centos.x86_64          18/44 
  正在安装    : slirp4netns-0.4.3-4.el7_8.x86_64                          19/44 
  正在安装    : 1:oci-register-machine-0-6.git2b44233.el7.x86_64          20/44 
  正在安装    : libyaml-0.1.4-11.el7_0.x86_64                             21/44 
  正在安装    : PyYAML-3.10-11.el7.x86_64                                 22/44 
  正在安装    : fuse3-libs-3.6.1-4.el7.x86_64                             23/44 
  正在安装    : fuse-overlayfs-0.7.2-6.el7_8.x86_64                       24/44 
  正在安装    : 1:containers-common-0.1.40-11.el7_8.x86_64                25/44 
  正在安装    : python-pytoml-0.1.14-1.git7dea353.el7.noarch              26/44 
  正在安装    : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64     27/44 
  正在安装    : 2:oci-umount-2.5-3.el7.x86_64                             28/44 
  正在安装    : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch    29/44 
  正在安装    : 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64   30/44 
  正在安装    : 2:docker-client-1.13.1-162.git64e9980.el7.centos.x86_64   31/44 
  正在安装    : 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64          32/44 
  清理        : policycoreutils-python-2.5-8.el7.x86_64                   33/44 
  清理        : selinux-policy-targeted-3.13.1-102.el7.noarch             34/44 
  清理        : selinux-policy-3.13.1-102.el7.noarch                      35/44 
  清理        : policycoreutils-2.5-8.el7.x86_64                          36/44 
  清理        : libselinux-utils-2.5-6.el7.x86_64                         37/44 
  清理        : setools-libs-3.3.8-1.1.el7.x86_64                         38/44 
  清理        : libselinux-python-2.5-6.el7.x86_64                        39/44 
  清理        : libsemanage-python-2.5-4.el7.x86_64                       40/44 
  清理        : libsemanage-2.5-4.el7.x86_64                              41/44 
  清理        : libselinux-2.5-6.el7.x86_64                               42/44 
  清理        : libsepol-2.5-6.el7.x86_64                                 43/44 
  清理        : python-dmidecode-3.10.13-11.el7.x86_64                    44/44 
  验证中      : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64      1/44 
  验证中      : fuse-overlayfs-0.7.2-6.el7_8.x86_64                        2/44 
  验证中      : libselinux-2.5-15.el7.x86_64                               3/44 
  验证中      : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch         4/44 
  验证中      : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch     5/44 
  验证中      : libselinux-python-2.5-15.el7.x86_64                        6/44 
  验证中      : 1:containers-common-0.1.40-11.el7_8.x86_64                 7/44 
  验证中      : 2:docker-common-1.13.1-162.git64e9980.el7.centos.x86_64    8/44 
  验证中      : subscription-manager-1.24.26-4.el7.centos.x86_64           9/44 
  验证中      : policycoreutils-2.5-34.el7.x86_64                         10/44 
  验证中      : selinux-policy-3.13.1-266.el7_8.1.noarch                  11/44 
  验证中      : 2:oci-umount-2.5-3.el7.x86_64                             12/44 
  验证中      : libselinux-utils-2.5-15.el7.x86_64                        13/44 
  验证中      : policycoreutils-python-2.5-34.el7.x86_64                  14/44 
  验证中      : python-pytoml-0.1.14-1.git7dea353.el7.noarch              15/44 
  验证中      : setools-libs-3.3.8-4.el7.x86_64                           16/44 
  验证中      : fuse3-libs-3.6.1-4.el7.x86_64                             17/44 
  验证中      : libyaml-0.1.4-11.el7_0.x86_64                             18/44 
  验证中      : libsemanage-python-2.5-14.el7.x86_64                      19/44 
  验证中      : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64        20/44 
  验证中      : 1:oci-register-machine-0-6.git2b44233.el7.x86_64          21/44 
  验证中      : libsemanage-2.5-14.el7.x86_64                             22/44 
  验证中      : libsepol-2.5-10.el7.x86_64                                23/44 
  验证中      : slirp4netns-0.4.3-4.el7_8.x86_64                          24/44 
  验证中      : subscription-manager-rhsm-1.24.26-4.el7.centos.x86_64     25/44 
  验证中      : python-dmidecode-3.12.2-4.el7.x86_64                      26/44 
  验证中      : 2:docker-client-1.13.1-162.git64e9980.el7.centos.x86_64   27/44 
  验证中      : python-syspurpose-1.24.26-4.el7.centos.x86_64             28/44 
  验证中      : 2:docker-1.13.1-162.git64e9980.el7.centos.x86_64          29/44 
  验证中      : selinux-policy-targeted-3.13.1-266.el7_8.1.noarch         30/44 
  验证中      : PyYAML-3.10-11.el7.x86_64                                 31/44 
  验证中      : subscription-manager-rhsm-certificates-1.24.26-4.el7.ce   32/44 
  验证中      : policycoreutils-2.5-8.el7.x86_64                          33/44 
  验证中      : libselinux-python-2.5-6.el7.x86_64                        34/44 
  验证中      : libselinux-utils-2.5-6.el7.x86_64                         35/44 
  验证中      : libsemanage-python-2.5-4.el7.x86_64                       36/44 
  验证中      : libsepol-2.5-6.el7.x86_64                                 37/44 
  验证中      : selinux-policy-3.13.1-102.el7.noarch                      38/44 
  验证中      : python-dmidecode-3.10.13-11.el7.x86_64                    39/44 
  验证中      : policycoreutils-python-2.5-8.el7.x86_64                   40/44 
  验证中      : libselinux-2.5-6.el7.x86_64                               41/44 
  验证中      : selinux-policy-targeted-3.13.1-102.el7.noarch             42/44 
  验证中      : libsemanage-2.5-4.el7.x86_64                              43/44 
  验证中      : setools-libs-3.3.8-1.1.el7.x86_64                         44/44 

已安装:
  docker.x86_64 2:1.13.1-162.git64e9980.el7.centos                              

作为依赖被安装:
  PyYAML.x86_64 0:3.10-11.el7                                                   
  atomic-registries.x86_64 1:1.22.1-33.gitb507039.el7_8                         
  container-selinux.noarch 2:2.119.2-1.911c772.el7_8                            
  container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7                      
  containers-common.x86_64 1:0.1.40-11.el7_8                                    
  docker-client.x86_64 2:1.13.1-162.git64e9980.el7.centos                       
  docker-common.x86_64 2:1.13.1-162.git64e9980.el7.centos                       
  fuse-overlayfs.x86_64 0:0.7.2-6.el7_8                                         
  fuse3-libs.x86_64 0:3.6.1-4.el7                                               
  libyaml.x86_64 0:0.1.4-11.el7_0                                               
  oci-register-machine.x86_64 1:0-6.git2b44233.el7                              
  oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6                            
  oci-umount.x86_64 2:2.5-3.el7                                                 
  python-pytoml.noarch 0:0.1.14-1.git7dea353.el7                                
  python-syspurpose.x86_64 0:1.24.26-4.el7.centos                               
  slirp4netns.x86_64 0:0.4.3-4.el7_8                                            
  subscription-manager.x86_64 0:1.24.26-4.el7.centos                            
  subscription-manager-rhsm.x86_64 0:1.24.26-4.el7.centos                       
  subscription-manager-rhsm-certificates.x86_64 0:1.24.26-4.el7.centos          

作为依赖被升级:
  libselinux.x86_64 0:2.5-15.el7                                                
  libselinux-python.x86_64 0:2.5-15.el7                                         
  libselinux-utils.x86_64 0:2.5-15.el7                                          
  libsemanage.x86_64 0:2.5-14.el7                                               
  libsemanage-python.x86_64 0:2.5-14.el7                                        
  libsepol.x86_64 0:2.5-10.el7                                                  
  policycoreutils.x86_64 0:2.5-34.el7                                           
  policycoreutils-python.x86_64 0:2.5-34.el7                                    
  python-dmidecode.x86_64 0:3.12.2-4.el7                                        
  selinux-policy.noarch 0:3.13.1-266.el7_8.1                                    
  selinux-policy-targeted.noarch 0:3.13.1-266.el7_8.1                           
  setools-libs.x86_64 0:3.3.8-4.el7                                             

完毕!

执行完毕后可以使用 docker --version 命令查看docker版本号
image.png

镜像加速更改

访问阿里云镜像加速服务


执行官方命令脚本即可
image.png
现在你可以使用docker 安装各种容器了,使用 docker search tomcat 试试吧!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值