apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609Dmysql
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' > /etc/apt/sources.list.d/docker.listgit
apt-get install apt-transport-https ca-certificatesgithub
apt-get update && sudo apt-get install docker-enginesql
systemctl start dockerdocker
修改/etc/docker/daemon.json文件配置
{
"registry-mirrors": ["https://××××××.mirror.aliyuncs.com"]
}json
重啓docker服務:systemctl restart dockercurl
詳見:https://github.com/docker/compose/releases測試
curl -L https://github.com/docker/compose/releases/download/1.25.1-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose 注:用pip安裝docker-compose的話貌似會遇到一些奇奇怪怪的問題