systemctl stop firewalld.service
vi /etc/selinux/config
修改SELINUX的值为disabled
yum list | grep docker
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce.x86_64
systemctl enable docker
yum -y update xfsprogs
systemctl start docker
docker version
docker info
原文:https://www.cnblogs.com/xl4ng/p/12864135.html