如下使用的系统为centos7,64位,镜像为CentOS-7-x86_64-Minimal-1804,全部操做以root
用户操做linux
yum install -y yum-utils
yum-config-manager --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum install -y docker-ce
systemctl start docker
systemctl enable docker