我搜索了许多链接,它们只为centos显示,尽管标题也是RHEL的。
我的操作系统详细信息:
cat /etc/redhat-release红帽企业Linux服务器7.4版(Maipo)
uname -r3.10.0-693.58.1.el7.x86_64
我运行这个是为了增加回购
sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repoTHen this
sudo yum install docker-ce但给出了这个错误。
加载插件:langpack,产品-id,禁用搜索的-repos https://download.docker.com/linux/rhel/7/x86_64/稳态/repodata/repomd.xml:Errno 14 HTTPS错误404 -找不到其他镜像。要解决这个问题,请参考下面的知识库文章https://access.redhat.com/articles/1320623,如果上面的文章无助于解决这个问题,请打开一张红帽支持的票。RHEL-7-服务器-rpms 3.4 kB 00:00 rhui rhel7-eus 2.1 kB 00:00补充-rpmsstackNewline2.0 kB 00:00:00 rhui-rhel-server-rhui-rhscl-7-rpms 2.1 kB 00:00 rhui-rhel-server-rhui-rhscl-7-rpms 2.0 kB 00:00:00解析依赖项->运行事务检查->包坞-ce.x86_64 3:19.03.12-3.el 7将安装->处理依赖项:容器-selinux >= 2:2.74用于包:3:docker-19.03.12-3.el7.x86_64 ->处理依赖项:包的containerd.io >= 1.2.2-3 : 3:docker-ce-19.03.12-3.el7.x86_64 ->处理依赖项: docker-ce-cli for package: 3:docker-ce-19.03.12-3.el7.x86_64 ->运行事务检查->包containerd.io.x86_64 0:1.2.13-3.2.el7>处理相关性:容器-selinux >= 2:2.74包:1.2.13-3.2.el7.x86_64->包码头-ce.x86_64 3:19.03.12-3.el 7->处理相关性:容器-selinux >= 2:2.74包: 3:docker-ce-19.03.12-3.el7.x86_64 ->包码头-ce-cli.x86_64 1:19.03.12- 19.03.12-3.el7.x86_64->包码头-ce-cli.x86_64 1:19.03.123.el7将安装->已完成的依赖解决错误:包:容器. be 1.2.13-3.2.el7.x86_64(坞-ce-稳定)要求:容器-selinux >= 2:2.74错误:软件包:3:docker 19.03.12-3.el7.x86_64(docker-ce- >= 2)需要:容器-selinux>= 2:2.74 **若要启用此功能,请在/etc/yum/pluginconf.d/search-disabled-repos.conf中设置“notify_only=0”
错误:Packerd.io-1.2.13-3.2.el7.x86_64(停靠-ce-稳定)要求:容器-selinux >= 2:2.74错误:包:3:docker 19.03.12-3.el7.x86_64(停靠-ce-稳定)要求:容器-selinux >= 2:2.74您可以尝试使用--skip解决您可以尝试运行的问题: rpm - -Va --nofiles
请建议一下。
发布于 2020-06-25 16:09:18
码头CE目前需要RHEL/CentOS 7.6或更高。在继续之前,您需要从7.4升级操作系统。
发布于 2020-06-25 10:14:18
您可以使用centos存储库而不是Redhat。只需禁用您刚刚添加的yum-config-manager --disable repository存储库并运行,
# yum -y remove docker-common docker container-selinux docker-selinux docker-engine
# yum -y install lvm2 device-mapper device-mapper-persistent-data device-mapper-event device-mapper-libs device-mapper-event-libs
# yum -y install wget
# wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo启用血流-7-服务器-附加-rpms存储库,
# subscription-manager repos --enable=rhel-7-server-extras-rpms最后,
yum -y install docker-ce发布于 2020-06-25 15:55:04
确保您移除旧包。
yum -y remove docker-common docker container-selinux docker-selinux docker-enginehttps://serverfault.com/questions/1022860
复制相似问题