yum配置
[root@localhost yum.repos.d]# yum list installed|grep docker
docker.x86_64 2:1.13.1-210.git7d71120.el7.centos
docker-client.x86_64 2:1.13.1-210.git7d71120.el7.centos
docker-common.x86_64 2:1.13.1-210.git7d71120.el7.centos
[root@localhost yum.repos.d]# ls
bk CentOS-Base.repo docker-ce.repo redhat.repo
[root@localhost yum.repos.d]# more CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/$releasever/os/$basearch/
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/$releasever/updates/$basearch/
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/$releasever/extras/$basearch/
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - repo.huaweicloud.com
baseurl=https://repo.huaweicloud.com/centos/$releasever/centosplus/$basearch/
#mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=https://repo.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
[root@localhost yum.repos.d]# more redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#
[root@localhost yum.repos.d]# more docker-ce.repo
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[root@localhost yum.repos.d]#
docker安装
[root@localhost yum.repos.d]# yum list docker
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
可安装的软件包
docker.x86_64 2:1.13.1-210.git7d71120.el7.centos extras
[root@localhost yum.repos.d]# yum install docker
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.13.1-210.git7d71120.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.13.1-210.git7d71120.el7.centos,它被软件包 2:docker-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.13.1-210.git7d71120.el7.centos,它被软件包 2:docker-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 subscription-manager-rhsm-certificates,它被软件包 2:docker-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker-client.x86_64.2.1.13.1-210.git7d71120.el7.centos 将被 安装
---> 软件包 docker-common.x86_64.2.1.13.1-210.git7d71120.el7.centos 将被 安装
--> 正在处理依赖关系 skopeo-containers >= 1:0.1.26-2,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-umount >= 2:2.3.3-3,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-systemd-hook >= 1:0.1.4-9,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-register-machine >= 1:0-5.13,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-storage-setup >= 0.9.0-1,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-selinux >= 2:2.51-1,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
--> 正在处理依赖关系 atomic-registries,它被软件包 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 需要
---> 软件包 subscription-manager-rhsm-certificates.x86_64.0.1.24.54-1.el7.centos 将被 安装
--> 正在检查事务
---> 软件包 atomic-registries.x86_64.1.1.22.1-33.gitb507039.el7_8 将被 安装
--> 正在处理依赖关系 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 将被 安装
---> 软件包 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 将被 安装
--> 正在检查事务
---> 软件包 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 需要
---> 软件包 python-pytoml.noarch.0.0.1.14-1.git7dea353.el7 将被 安装
---> 软件包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安装
---> 软件包 subscription-manager.x86_64.0.1.24.54-1.el7.centos 将被 安装
--> 正在处理依赖关系 subscription-manager-rhsm = 1.24.54,它被软件包 subscription-manager-1.24.54-1.el7.centos.x86_64 需要
--> 正在处理依赖关系 python-dmidecode >= 3.12.2-2,它被软件包 subscription-manager-1.24.54-1.el7.centos.x86_64 需要
--> 正在处理依赖关系 python-syspurpose,它被软件包 subscription-manager-1.24.54-1.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安装
---> 软件包 python-dmidecode.x86_64.0.3.12.2-4.el7 将被 安装
---> 软件包 python-syspurpose.x86_64.0.1.24.54-1.el7.centos 将被 安装
---> 软件包 subscription-manager-rhsm.x86_64.0.1.24.54-1.el7.centos 将被 安装
--> 解决依赖关系完成依赖关系解决
=======================================================================================================================================================
Package 架构 版本 源 大小
=======================================================================================================================================================
正在安装:
docker x86_64 2:1.13.1-210.git7d71120.el7.centos extras 17 M
为依赖而安装:
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-210.git7d71120.el7.centos extras 3.9 M
docker-common x86_64 2:1.13.1-210.git7d71120.el7.centos extras 101 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
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-dmidecode x86_64 3.12.2-4.el7 base 83 k
python-pytoml noarch 0.1.14-1.git7dea353.el7 extras 18 k
python-syspurpose x86_64 1.24.54-1.el7.centos updates 277 k
slirp4netns x86_64 0.4.3-4.el7_8 extras 81 k
subscription-manager x86_64 1.24.54-1.el7.centos updates 1.1 M
subscription-manager-rhsm x86_64 1.24.54-1.el7.centos updates 336 k
subscription-manager-rhsm-certificates x86_64 1.24.54-1.el7.centos updates 240 k事务概要
=======================================================================================================================================================
安装 1 软件包 (+18 依赖软件包)总计:25 M
总下载量:25 M
安装大小:86 M
Is this ok [y/d/N]: y
Downloading packages:
(1/18): atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64.rpm | 36 kB 00:00:00
(2/18): container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm | 35 kB 00:00:00
(3/18): containers-common-0.1.40-11.el7_8.x86_64.rpm | 43 kB 00:00:00
(4/18): docker-client-1.13.1-210.git7d71120.el7.centos.x86_64.rpm | 3.9 MB 00:00:01
(5/18): docker-common-1.13.1-210.git7d71120.el7.centos.x86_64.rpm | 101 kB 00:00:00
(6/18): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:00
(7/18): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 82 kB 00:00:00
(8/18): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm | 1.1 MB 00:00:00
(9/18): oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64.rpm | 34 kB 00:00:00
(10/18): oci-umount-2.5-3.el7.x86_64.rpm | 33 kB 00:00:00
(11/18): python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm | 18 kB 00:00:00
(12/18): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:00
(13/18): python-dmidecode-3.12.2-4.el7.x86_64.rpm | 83 kB 00:00:00
(14/18): python-syspurpose-1.24.54-1.el7.centos.x86_64.rpm | 277 kB 00:00:00
(15/18): docker-1.13.1-210.git7d71120.el7.centos.x86_64.rpm | 17 MB 00:00:03
(16/18): subscription-manager-1.24.54-1.el7.centos.x86_64.rpm | 1.1 MB 00:00:00
(17/18): subscription-manager-rhsm-1.24.54-1.el7.centos.x86_64.rpm | 336 kB 00:00:00
(18/18): subscription-manager-rhsm-certificates-1.24.54-1.el7.centos.x86_64.rpm | 240 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------
总计 6.3 MB/s | 25 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : subscription-manager-rhsm-certificates-1.24.54-1.el7.centos.x86_64 1/19
正在安装 : subscription-manager-rhsm-1.24.54-1.el7.centos.x86_64 2/19
正在安装 : python-dmidecode-3.12.2-4.el7.x86_64 3/19
正在安装 : python-pytoml-0.1.14-1.git7dea353.el7.noarch 4/19
正在安装 : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 5/19
正在安装 : slirp4netns-0.4.3-4.el7_8.x86_64 6/19
正在安装 : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 7/19
正在安装 : 2:oci-umount-2.5-3.el7.x86_64 8/19
正在安装 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 9/19
正在安装 : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 10/19
正在安装 : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 11/19
正在安装 : python-syspurpose-1.24.54-1.el7.centos.x86_64 12/19
正在安装 : subscription-manager-1.24.54-1.el7.centos.x86_64 13/19
正在安装 : fuse3-libs-3.6.1-4.el7.x86_64 14/19
正在安装 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 15/19
正在安装 : 1:containers-common-0.1.40-11.el7_8.x86_64 16/19
正在安装 : 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 17/19
正在安装 : 2:docker-client-1.13.1-210.git7d71120.el7.centos.x86_64 18/19
正在安装 : 2:docker-1.13.1-210.git7d71120.el7.centos.x86_64 19/19
验证中 : 2:docker-client-1.13.1-210.git7d71120.el7.centos.x86_64 1/19
验证中 : fuse3-libs-3.6.1-4.el7.x86_64 2/19
验证中 : python-syspurpose-1.24.54-1.el7.centos.x86_64 3/19
验证中 : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 4/19
验证中 : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 5/19
验证中 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 6/19
验证中 : 2:docker-common-1.13.1-210.git7d71120.el7.centos.x86_64 7/19
验证中 : 2:docker-1.13.1-210.git7d71120.el7.centos.x86_64 8/19
验证中 : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 9/19
验证中 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 10/19
验证中 : 2:oci-umount-2.5-3.el7.x86_64 11/19
验证中 : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 12/19
验证中 : slirp4netns-0.4.3-4.el7_8.x86_64 13/19
验证中 : subscription-manager-rhsm-1.24.54-1.el7.centos.x86_64 14/19
验证中 : python-pytoml-0.1.14-1.git7dea353.el7.noarch 15/19
验证中 : subscription-manager-rhsm-certificates-1.24.54-1.el7.centos.x86_64 16/19
验证中 : 1:containers-common-0.1.40-11.el7_8.x86_64 17/19
验证中 : python-dmidecode-3.12.2-4.el7.x86_64 18/19
验证中 : subscription-manager-1.24.54-1.el7.centos.x86_64 19/19已安装:
docker.x86_64 2:1.13.1-210.git7d71120.el7.centos作为依赖被安装:
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-210.git7d71120.el7.centos docker-common.x86_64 2:1.13.1-210.git7d71120.el7.centos
fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 fuse3-libs.x86_64 0:3.6.1-4.el7
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-dmidecode.x86_64 0:3.12.2-4.el7
python-pytoml.noarch 0:0.1.14-1.git7dea353.el7 python-syspurpose.x86_64 0:1.24.54-1.el7.centos
slirp4netns.x86_64 0:0.4.3-4.el7_8 subscription-manager.x86_64 0:1.24.54-1.el7.centos
subscription-manager-rhsm.x86_64 0:1.24.54-1.el7.centos subscription-manager-rhsm-certificates.x86_64 0:1.24.54-1.el7.centos完毕!
[root@localhost yum.repos.d]# dockerUsage: docker COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-D, --debug Enable debug mode
--help Print usage
-H, --host list Daemon socket(s) to connect to (default [])
-l, --log-level string Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
安装docker-ce,会遇到导入 GPG key点Y同意
[root@localhost ~]# yum install docker-ce docker-ce-cli containerd.io
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.33-3.1.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 containerd.io-1.6.33-3.1.el7.x86_64 需要
---> 软件包 docker-ce.x86_64.3.26.1.4-1.el7 将被 安装
--> 正在处理依赖关系 docker-ce-rootless-extras,它被软件包 3:docker-ce-26.1.4-1.el7.x86_64 需要
---> 软件包 docker-ce-cli.x86_64.1.26.1.4-1.el7 将被 安装
--> 正在处理依赖关系 docker-buildx-plugin,它被软件包 1:docker-ce-cli-26.1.4-1.el7.x86_64 需要
--> 正在处理依赖关系 docker-compose-plugin,它被软件包 1:docker-ce-cli-26.1.4-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
---> 软件包 docker-buildx-plugin.x86_64.0.0.14.1-1.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.26.1.4-1.el7 将被 安装
---> 软件包 docker-compose-plugin.x86_64.0.2.27.1-1.el7 将被 安装
--> 解决依赖关系完成依赖关系解决
=======================================================================================================================================================
Package 架构 版本 源 大小
=======================================================================================================================================================
正在安装:
containerd.io x86_64 1.6.33-3.1.el7 docker-ce-stable 35 M
docker-ce x86_64 3:26.1.4-1.el7 docker-ce-stable 27 M
docker-ce-cli x86_64 1:26.1.4-1.el7 docker-ce-stable 15 M
为依赖而安装:
container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k
docker-buildx-plugin x86_64 0.14.1-1.el7 docker-ce-stable 14 M
docker-ce-rootless-extras x86_64 26.1.4-1.el7 docker-ce-stable 9.4 M
docker-compose-plugin x86_64 2.27.1-1.el7 docker-ce-stable 13 M事务概要
=======================================================================================================================================================
安装 3 软件包 (+4 依赖软件包)总计:114 M
总下载量:41 M
安装大小:401 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for docker-ce-stable
警告:/var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm 的公钥尚未安装
(1/2): docker-buildx-plugin-0.14.1-1.el7.x86_64.rpm | 14 MB 00:00:33
(2/2): docker-ce-26.1.4-1.el7.x86_64.rpm | 27 MB 00:01:48
-------------------------------------------------------------------------------------------------------------------------------------------------------
总计 384 kB/s | 41 MB 00:01:48
从 https://download.docker.com/linux/centos/gpg 检索密钥
获取 GPG 密钥失败:[Errno 14] curl#35 - "TCP connection reset by peer"
[root@localhost ~]# yum install docker-ce docker-ce-cli containerd.io
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 containerd.io.x86_64.0.1.6.33-3.1.el7 将被 安装
--> 正在处理依赖关系 container-selinux >= 2:2.74,它被软件包 containerd.io-1.6.33-3.1.el7.x86_64 需要
---> 软件包 docker-ce.x86_64.3.26.1.4-1.el7 将被 安装
--> 正在处理依赖关系 docker-ce-rootless-extras,它被软件包 3:docker-ce-26.1.4-1.el7.x86_64 需要
---> 软件包 docker-ce-cli.x86_64.1.26.1.4-1.el7 将被 安装
--> 正在处理依赖关系 docker-buildx-plugin,它被软件包 1:docker-ce-cli-26.1.4-1.el7.x86_64 需要
--> 正在处理依赖关系 docker-compose-plugin,它被软件包 1:docker-ce-cli-26.1.4-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.119.2-1.911c772.el7_8 将被 安装
---> 软件包 docker-buildx-plugin.x86_64.0.0.14.1-1.el7 将被 安装
---> 软件包 docker-ce-rootless-extras.x86_64.0.26.1.4-1.el7 将被 安装
---> 软件包 docker-compose-plugin.x86_64.0.2.27.1-1.el7 将被 安装
--> 解决依赖关系完成依赖关系解决
=======================================================================================================================================================
Package 架构 版本 源 大小
=======================================================================================================================================================
正在安装:
containerd.io x86_64 1.6.33-3.1.el7 docker-ce-stable 35 M
docker-ce x86_64 3:26.1.4-1.el7 docker-ce-stable 27 M
docker-ce-cli x86_64 1:26.1.4-1.el7 docker-ce-stable 15 M
为依赖而安装:
container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k
docker-buildx-plugin x86_64 0.14.1-1.el7 docker-ce-stable 14 M
docker-ce-rootless-extras x86_64 26.1.4-1.el7 docker-ce-stable 9.4 M
docker-compose-plugin x86_64 2.27.1-1.el7 docker-ce-stable 13 M事务概要
=======================================================================================================================================================
安装 3 软件包 (+4 依赖软件包)总计:114 M
安装大小:401 M
Is this ok [y/d/N]: y
Downloading packages:
警告:/var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-compose-plugin-2.27.1-1.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
从 https://download.docker.com/linux/centos/gpg 检索密钥
导入 GPG key 0x621E9F35:
用户ID : "Docker Release (CE rpm) <docker@docker.com>"
指纹 : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
来自 : https://download.docker.com/linux/centos/gpg
是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 1/7
正在安装 : containerd.io-1.6.33-3.1.el7.x86_64 2/7
正在安装 : docker-buildx-plugin-0.14.1-1.el7.x86_64 3/7
正在安装 : docker-compose-plugin-2.27.1-1.el7.x86_64 4/7
正在安装 : 1:docker-ce-cli-26.1.4-1.el7.x86_64 5/7
正在安装 : docker-ce-rootless-extras-26.1.4-1.el7.x86_64 6/7
正在安装 : 3:docker-ce-26.1.4-1.el7.x86_64 7/7
验证中 : docker-compose-plugin-2.27.1-1.el7.x86_64 1/7
验证中 : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 2/7
验证中 : containerd.io-1.6.33-3.1.el7.x86_64 3/7
验证中 : 3:docker-ce-26.1.4-1.el7.x86_64 4/7
验证中 : 1:docker-ce-cli-26.1.4-1.el7.x86_64 5/7
验证中 : docker-ce-rootless-extras-26.1.4-1.el7.x86_64 6/7
验证中 : docker-buildx-plugin-0.14.1-1.el7.x86_64 7/7已安装:
containerd.io.x86_64 0:1.6.33-3.1.el7 docker-ce.x86_64 3:26.1.4-1.el7 docker-ce-cli.x86_64 1:26.1.4-1.el7作为依赖被安装:
container-selinux.noarch 2:2.119.2-1.911c772.el7_8 docker-buildx-plugin.x86_64 0:0.14.1-1.el7 docker-ce-rootless-extras.x86_64 0:26.1.4-1.el7
docker-compose-plugin.x86_64 0:2.27.1-1.el7完毕!
[root@localhost ~]#