安装Docker
下面我要介绍的是最简易的安装Docker的方法
$ curl -fsSL get.docker.com -o get-docker.sh$ sudo sh get-docker.sh
**若以安装旧版Docker,需要先卸载旧版Docker, **$ sudo apt-get remove docker docker-engine docker.io
安装Docker-Compose
下载Docker-Compose到指定目录
sudo curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
赋予执行权限
sudo chmod +x /usr/local/bin/docker-compose
检查是否安装成功
$ docker-compose --versiondocker-compose version 1.20.1, build 1719ceb
作者:褪色的记忆1994
链接:https://www.jianshu.com/p/a88aea95705b