# 初使化安装环境
yum -y install yum-utils gcc g++ kernel-devel
# 添加yum 仓库并更新
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
# 安装并以服务方式启动docker
sudo yum -y install docker-ce
sudo systemctl enable docker
sudo systemctl start docker
Copyright © 2015 Powered by MWeb, Theme used GitHub CSS.