前提条件: ubuntu16.04
下载docker
下载链接: wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb
离线安装docker
sudo docker -i dpkg -i docker-ce_17.09.0~ce-0~ubuntu_amd64.deb
查看docker版本
docker -vDocker version 17.09.0-ce, build afdb6d4
安装 curl
apt -y install curl
下载docker-compose 编排工具
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
查看docker-compose 版本
docker-compose --version docker-compose version 1.23.1, build b02f1306