1、安装 Docker

通过脚本安装:

  1. $ curl -fsSL https://get.docker.com -o get-docker.sh
  2. $ sudo sh get-docker.sh

2、安装 Compose

linux上安装:

  1. $ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

设置执行权限:

  1. $ sudo chmod +x /usr/local/bin/docker-compose

查看版本:

  1. docker-compose --version