CentOs 7安装Docker环境

一 安装Docker

1. 下载关于Docker的依赖环境

yum -y install yum-utils device-mapper-persistent-data lvm2

2. 设置一下Docker的镜像源

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

3. 安装Docker

yum makacache fast
yum -y install docker-ce

4. 启动并设置为开机自动启动

#启动Docker服务
systemctl start docker
#设置开机自动启动
systemctl enable docker

5. 阿里云镜像加速

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

登录后 复制修改配置文件即可  

 

 

 

 

本文作者:KwFruit

本文链接:https://www.cnblogs.com/mangoubiubiu/p/15231717.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   KwFruit  阅读(35)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起