重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: 安装docker时解决container-selinux错误 [打印本页]

作者: ZhangQi    时间: 5 天前
标题: 安装docker时解决container-selinux错误
在安装docker前选择了阿里云的镜像仓库

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo


在安装docker-ce、docker-ce-cli、containerd.io时出现了以下报错

Error: Package: containerd.io-1.6.33-3.1.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-26.1.4-1.el7.x86_64 (docker-ce-stable)
           Requires: slirp4netns >= 0.4
Error: Package: 3:docker-ce-26.1.4-1.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-26.1.4-1.el7.x86_64 (docker-ce-stable)
           Requires: fuse-overlayfs >= 0.7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


5466069b11e5f984f7.png
登录/注册后可看大图