本文筆記參考此篇教學:
Prerequisites
- Intall Docker Engine, see Install Docker on CentOS7
Installation
STEP1. 安裝Docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
STEP2. 設定執行權限
$ sudo chmod +x /usr/local/bin/docker-compose
STEP3. 確認是否安裝成功
$ docker-compose --versionOutput
docker-compose version 1.23.2, build 1110ad01