首页 > 其他 > 详细

centos yum安装docker

时间:2020-09-05 13:25:38      阅读:47      评论:0      收藏:0      [点我收藏+]
cd /etc/yum.repos.d/ 
mv CentOS-Base.repo CentOS-Base.repo_bak

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache

yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast

yum list docker-ce --showduplicates | sort -r # 查看docke版本

yum install docker-ce-18.06.0.ce-3.el7 # 安装指定版本
systemctl start docker
systemctl status docker
docker version

centos yum安装docker

原文:https://www.cnblogs.com/sanduzxcvbnm/p/13617100.html

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