yum update -y
#
yum install epel-release -y
#
yum install -y yum-utils -y
#
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
#
yum makecache fast
#
yum install docker-ce -y
#
systemctl start docker
#
systemctl enable docker
原文地址:https://blog.51cto.com/19840202/2428868
时间: 2024-10-29 13:59:50