linux 安装docker报错 需要:container-selinux >= 2:2.74

错误:软件包:3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
需要:container-selinux >= 2:2.74
错误:软件包:containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
需要:container-selinux >= 2:2.74

  解决方法:

yum install --setopt=obsoletes=0 \
   docker-ce-17.03.2.ce-1.el7.centos.x86_64 \
   docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch # on a new system with yum repo defined, forcing older version and ignoring obsoletes introduced by 17.06.0

  

posted @ 2020-07-06 10:32  一码平川  阅读(6181)  评论(0编辑  收藏  举报