首页 > 其他 > 详细

Install docker to Redhat 7

时间:2019-08-30 17:03:21      阅读:82      评论:0      收藏:0      [点我收藏+]

 

1)   sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

2) sudo yum install docker-ce docker-ce-cli containerd.io

3)   上面2)应该会出错,告诉你container-selinux的版本不够

4) 

Installing the Selinux from the Centos repository worked for me: 
1. Go to http://mirror.centos.org/centos/7/extras/x86_64/Packages/ 
2. Find the latest version for container-selinux i.e. container-selinux-2.21-1.el7.noarch.rpm 
3. Run the following command on your terminal: $ sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/**Add_current_container-selinux_package_here** 
4. The command should looks like the following $ sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.21-1.el7.noarch.rpm 

 

参考:

https://docs.docker.com/install/linux/docker-ce/centos/

https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9/45287245

 

Install docker to Redhat 7

原文:https://www.cnblogs.com/johnsonshu/p/11435218.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!