自动安装docker-ce
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
自动安装docker-compose
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-uname -s
-uname -m
> /usr/local/bin/docker-compose
再 chmod +x /usr/local/bin/docker-compose
若/usr/bin 下找不到命令,则cp /usr/local/bin/docker-compose /usr/bin/ 下即可
最后docker-compose -version 查看