On Linux systems, first install the Docker
[root@ip-172-31-84-176 ~]# sudo yum install docker
[root@ip-172-31-84-176 ~]# sudo service docker start
Run this command to download the current stable release of Docker Compose:
[root@ip-172-31-84-176 ~]# sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Apply executable permissions to the binary:
[root@ip-172-31-84-176 ~]# sudo chmod +x /usr/local/bin/docker-compose
Note: If the command docker-compose fails after installation, check your path. You can also create a symbolic link to /usr/bin or any other directory in your path.
[root@ip-172-31-84-176 ~]# sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Test the installation.
[root@ip-172-31-84-176 ~]# docker-compose --version
docker-compose version 1.24.0, build 0aa59064
It would be great to have docker-compose installation itself as an example
ReplyDelete