CentOS7用阿里云Docker Yum源在线安装Docker

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 start docker

docker pull hello-world

docker run hello-world

 

posted @ 2020-05-17 18:39  天天代码码天天  阅读(2)  评论(0编辑  收藏  举报  来源