首页 > 其他 > 详细

VM CentOS Docker 安装

时间:2018-02-26 10:39:32      阅读:223      评论:0      收藏:0      [点我收藏+]

1、CentOS版本为7.x 。

2、使yum的CentOS-Extras配置生效

文件CentOS-Base.repo中enabled的値从0变成1
vim /etc/yum.repos.d/CentOS-Base.repo    
[extras]    
name=CentOS-$releasever - Extras    
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras    
gpgcheck=1    
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7    
enabled=1    ★    値从0变成1
※Docker is included by default in the CentOS-Extras repository 

 


3、执行yum 安装

技术分享图片

技术分享图片

4、启动 Docker 后台服务

技术分享图片

5、运行hello-world

技术分享图片

VM CentOS Docker 安装

原文:https://www.cnblogs.com/sixing/p/8471757.html

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