Install Docker on CentOS

yum update \
&& yum remove docker docker-client docker-client-latest \
docker-common docker-latest docker-latest-logrotate \
docker-logrotate docker-engine \
&& yum install -y yum-utils \
&& yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo \
&& yum update \
&& yum install docker-ce docker-ce-cli containerd.io \
&& systemctl enable docker \
&& systemctl start docker
Copy the code