命令: yum -y install docker-ce
结果:
已加载的插件:最快的镜像,langpacks 从缓存的主机文件加载镜像速度 解决依赖关系 ->运行事务检查 --->将安装软件包docker-ce.x86_64 0:18.06.0.ce-3.el7 ->处理依赖性:软件包的docker-selinux> = 2.9:docker-ce-18.06.0.ce-3.el7.x86_64 ->完成的依赖关系解析 错误:软件包:docker-ce-18.06.0.ce-3.el7.x86_64(docker-ce-stable) 需要:container-selinux> = 2.9 您可以尝试使用--skip-broken解决此问题 您可以尝试运行:rpm -Va --nofiles --nodigest
答案 0 :(得分:8)
使用以下命令安装container-selinux-2.9依赖关系解决:
sudo yum install ftp://bo.mirror.garr.it/1/slc/centos/7.1.1503/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
答案 1 :(得分:3)
使用下面的链接从可信来源安装 container-selinux
sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.55-1.el7.noarch.rpm
答案 2 :(得分:2)
此docker-ce
版本对我有用:
sudo yum -y install docker-ce-cli.x86_64 1:19.03.5-3.el7
祝你好运!
答案 3 :(得分:0)
您可以在以下路径中启用Extras存储库:
* installing *source* package ‘largeVis’ ...
** package ‘largeVis’ successfully unpacked and MD5 sums checked
** libs
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
ERROR: compilation failed for package ‘largeVis’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/largeVis’
Warning in install.packages :
答案 4 :(得分:0)
您需要启用CentOS的“ extras”存储库。
这是我的做法:
/etc/yum.repos.d/CentOS-Base.repo
/os/
替换URL中的/extras/
例如:
[CentOS-Base]
name=CentOS 7 Base Mirror
baseurl=http://mirror.centos.org/centos/7/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[CentOS-Extras]
name=CentOS 7 Extras
baseurl=http://mirror.centos.org/centos/7/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
然后尝试再次安装docker
答案 5 :(得分:0)
我必须将--nogpgcheck
添加到选定的错误答案
Public key for container-selinux-2.9-4.el7.noarch.rpm is not installed