根據官方文件教學,看起來是適用所有Linux system。
1. 下載stable release的docker-compose binary:
curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. 給予執行權限:
chmod +x /usr/local/bin/docker-compose
3. 測試安裝是否完成:
docker-compose --version
若出現找不到docker-compose指令,執行以下cmd:
$ ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose