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
Use the latest Compose release number in the download command.
The above command is an example, and it may become out-of-date. To ensure you have the latest version, check the Compose repository release page on GitHub.
If you have problems installing with
curl, see Alternative Install Options tab above.
Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
apt-get install -y bash
Place the completion script in your
$ mkdir -p ~/.zsh/completion $ curl -L https://raw.githubusercontent.com/docker/compose/1.22.0/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose
Include the directory in your
$fpathby adding in
compinitis loaded or do it by adding in
autoload -Uz compinit && compinit -i
Then reload your shell:
exec $SHELL -l
- Test the installation.
$ docker-compose --version docker-compose version 1.22.0, build 1719ceb