安装docker-compose

219 阅读1分钟

1.Run this command to download the latest version of Docker Compose:

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

2.Apply executable permissions to the binary:

sudo chmod +x /usr/local/bin/docker-compose

3.Test the installation.

$ docker-compose --version
docker-compose version 1.22.0, build 1719ceb