install docker-compose ec2 code example
Example 1: centos install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Example 2: install docker-compose ec2
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Example 3: install docker-compose ec2
sudo chmod +x /usr/local/bin/docker-compose
Example 4: install docker-compose ec2
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose