Alibaba Cloud Centos8 install docker

1. Download the repo of docker-ce


curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo

If it prompts curl: command not found, the reason is that Curl is not installed on your VPS, install Curl

yum update -y && yum install curl -y

2. Installation dependencies


yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

3. Install docker-ce


yum install docker-ce

4. Set up auto start


  systemctl enable docker

5. Start docker


systemctl start docker

-------------------------------------------------- -----------------------Dividing line------------------------- -------------------------------------------------- -

View version

docker version

Check status

Guess you like

Origin blog.csdn.net/CarryBest/article/details/107404319