1.问题
安装docker报错如下:
[root@centos7 app]# rpm -ivh docker-ce-18.06.0.ce-3.el7.x86_64.rpm
警告:docker-ce-18.06.0.ce-3.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
错误:依赖检测失败:
container-selinux >= 2.9 被 docker-ce-18.06.0.ce-3.el7.x86_64 需要
[root@centos7 app]# rpm -Va --nofiles --nodigest
2.解决办法:安装container-selinux
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install epel-release -y
yum install container-selinux -y
3.效果如下: