yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum -y install docker-ce
安装报错:
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (centos-extras)
需要:selinux-policy-base >= 3.13.1-216.el7
已安装: selinux-policy-targeted-3.13.1-166.el7.noarch (@anaconda)
selinux-policy-base = 3.13.1-166.el7
可用: selinux-policy-minimum-3.13.1-166.el7.noarch (dvd)
selinux-policy-base = 3.13.1-166.el7
可用: selinux-policy-mls-3.13.1-166.el7.noarch (dvd)
selinux-policy-base = 3.13.1-166.el7
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (centos-extras)
需要:selinux-policy >= 3.13.1-216.el7
已安装: selinux-policy-3.13.1-166.el7.noarch (@anaconda)
selinux-policy = 3.13.1-166.el7
错误:软件包:2:container-selinux-2.119.2-1.911c772.el7_8.noarch (centos-extras)
需要:selinux-policy-targeted >= 3.13.1-216.el7
已安装: selinux-policy-targeted-3.13.1-166.el7.noarch (@anaconda)
selinux-policy-targeted = 3.13.1-166.el7
出现上述错误,解决方法如下:
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# selinux-policy
再安装docker
成功
yum -y install docker-ce
参考:
https://blog.csdn.net/Romanticn_chu/article/details/107322140
标签:selinux,3.13,noarch,centos7,policy,docker,安装,el7,166 From: https://www.cnblogs.com/lutt123/p/17222530.html