如下使用的系統爲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