base=https://github.com/docker/machine/releases/download/v0.16.0 && curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && sudo install /tmp/docker-machine /usr/local/bin/docker-machine
详情请看docker官网介绍
https://docs.docker.com/machine/install-machine/
------------------------------------------------------------------------------------------------------
docker-compose安装更简单了
pip install docker-compose