预先安装额外的依赖
yum install -y docker
systemctl start docker.service
systemctl enable docker.service
vim /etc/docker/daemon.json
# 在其中加?加速镜像源地
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
systemctl daemon-reload
systemctl restart docker.service
docker version
原文:https://www.cnblogs.com/aaaak/p/install_docker.html