1. rhel7官方有源可以直接使用,前提是需要订阅, 参考地址
  2. 通过添加CentOS7 源,进行安装;

参考博客

安装container-selinux依赖(Requires: container-selinux >= 2.9)

Stackoverflow 安装CentOS7 container-selinux

  1. 打开CentOS7包仓库(http://mirror.centos.org/centos/7/extras/x86_64/Packages/)
  2. 找到最新的container-selinux包名(如:container-selinux-2.95-2.el7_6.noarch.rpm)
  3. sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.95-2.el7_6.noarch.rpm安装上面的包

安装docker-ce

yum install docker-ce

启动docker服务

systemctl start docker

测试docker正常

docker run hello-world

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2021-11-10
  • 2021-04-05
  • 2021-08-19
  • 2021-11-13
  • 2021-07-11
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2021-06-27
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案