系统:CentOS7
# 安装yum-config-manager
sudo yum install yum-utils -y
# 安装 Docker 官方源
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 更新源
sudo yum makecache fast
# 安装
sudo yum install docker-ce -y
systemctl enable docker
# 启动docker
systemctl start docker
网友评论