docker-ce 安装

时间:2020-10-05 22:19:28   收藏:0   阅读:34
[root@iZuf6h0pjb0u8rhjhiqmf8Z ~]# cat 1-install-docker.sh
#!/bin/bash
set -e
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast && yum -y install docker-ce
systemctl enable docker
systemctl start docker
#查看版本
docker --version
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!