安裝docker
[code]yum -y install docker
systemctl start docker
systemctl enable docker
阿裡雲加速
[code]# 系統要求 CentOS 7 以上,Docker 1.9 以上。
cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service
sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=https://9rkjzjim.mirror.aliyuncs.com|g" /etc/systemd/system/docker.service
systemctl daemon-reload
service docker restart
安裝 docker-compose
[code]yum install epel-release
yum install -y python-pip
pip install docker-compose
yum upgrade python* #可選
參考
https://wiki.centos.org/zh/Cloud/Docker