yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yumdownloader --assumeyes --destdir=/root/pkg/docker-ce --resolve docker-ce yumdownloader --assumeyes --destdir=/root/pkg/docker-compose --resolve docker-compose
yum install -y --cacheonly --disablerepo=* /root/pkg/docker-ce/*.rpm systemctl enable docker systemctl start docker
|