On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub. Follow the instructions from the link, which involve running the
curl
command in your terminal to download the binaries. These step by step instructions are also included below.- Run this command to download the latest version of 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
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. - Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
Note: If the commanddocker-compose
fails after installation, check your path. You can also create a symbolic link to/usr/bin
or any other directory in your path.
For example:
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- Test the installation.
$ docker-compose --version docker-compose version 1.23.2, build 1110ad01
Comments
Post a Comment
https://gengwg.blogspot.com/