Centos7 安装docker yum

1 uname-r

2 yum -y update

3 yuminstall-yyum-utils device-mapper-persistent-data lvm2

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

5 yum makecache fast

6yum -y install docker-ce

7 systemctl start docker

你可能感兴趣的:(Centos7 安装docker yum)