4

CentOS 7 安装Docker CE

 3 years ago
source link: http://www.chenshake.com/the-installation-of-the-centos-7-with-docker-ce/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

 

默认CentOS yum的Docker版本很低,应该一直都没升级。这次我是真CentOS 7.6 虚拟机里,完成这个测试。

如果以前有安装老版本,需要卸载

yum remove docker  docker-common docker-selinux docker-engine
yum install yum-utils device-mapper-persistent-data lvm2

添加阿里的docker repo

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

查看一下结果

yum list docker-ce --showduplicates | sort -r

选择一个docker版本来安装

yum install docker-ce-20.10.6

启动相关服务

systemctl start docker
systemctl enable docker

 Posted by 陈沙克 at 9:52 AM

 Leave a Reply Cancel reply

Your Comment

Name (required)

E-mail (required)

Website

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK