注意Centos7.4系统以下需要升级内核,否则会安装失败
- 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
- rpm --import https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
- yum -y install docker-ce
- systemctl enable docker
- systemctl restart docker
没有评论