docker 安装
登录https://download.daocloud.io/,有许多的docker版本下载。
在 Ubuntu 中安装 Docker
sudo apt-get -f install
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.daocloud.io/docker/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.daocloud.io/docker/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y -q docker-ce=17.03.2*
sudo service docker start
sudo service docker status
安装docker加速起
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f4caef8e.m.daocloud.io
docker-compose
curl -L https://get.daocloud.io/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose