docker installation and deployment

1. Upgrade the local yum

yum update

 

2. Installation tools and dependencies

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

 

3. Remove the old version docker

yum remove docker

 

4. Set the source yum

sudo yum-config-manager --add-repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo

 

5. Installation docker

yum install docker-ce

 

Guess you like

Origin www.cnblogs.com/shiblog/p/11536490.html