Docker installation (Linux)

The official website to download installation instructions  

1.卸载旧版本
sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-selinux \
                  docker-engine-selinux \
                  docker-engine

2.设置存储库
sudo yum install -y yum-utils \
  Device -mapper-persistent- the Data \ 
  lvm2 

sudo yum -config- Manager \
     --add- repo \ 
    HTTPS: //download.docker.com/linux/centos/docker- ce.repo

 3 . Installation docker Community Edition 
sudo yum install Docker - ce
 4 . start close Docker 
systemctl start Docker
Official website to download installation instructions

 

Guess you like

Origin www.cnblogs.com/open-yang/p/11256488.html