1. 程式人生 > >CentOS7使用阿里雲倉庫安裝docker-ce

CentOS7使用阿里雲倉庫安裝docker-ce

解除安裝已安裝的docker(如果以前安裝過docker)

[[email protected] ~]# yum remove docker docker-common docker-selinux docker-engine -y

[[email protected] ~]# yum install -y yum-utils device-mapper-persistent-data lvm2

[[email protected] ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

[

[email protected] ~]# yum makecache fast

[[email protected] ~]# yum install docker-ce -y