centos安装docker-ce
# 获得镜像源wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo# 检查镜像源curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo#安装依赖yum insta
·
#更新yum包:
sudo yum update
# 安装需要的软件包
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# 安装
yum install docker-ce-17.12.0.ce
#启动、设置开启开机启动
sudo systemctl start docker
sudo systemctl enable docker
更多推荐
已为社区贡献3条内容
所有评论(0)