centos7.2 升级docker

1.删除旧Docker文件

yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate ocker-logrotate docker-engine

2.安装相关文件

 yum install -y yum-utils device-mapper-persistent-data lvm2

3.增加docker相关repository

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

4.安装docker

yum install docker-ce  

5.启动docker

systemctl start docker

你可能感兴趣的:(安装配置)