I want to install Docker Compose on an Amazon Linux 2 EC2 Instance.
I just want to find some instructions that work for installing docker compose. Can someone send me a link or give me some instructions that actually work?
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
1. SSH into your EC2 instance, and Install docker on your machine after updating by typing the following commands in your terminal:
sudo yum update
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
sudo service docker start
sudo chkconfig docker on
2. Install docker compose on your instance with the following commands:
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
sudo chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
3. Check that docker compose was properly installed with this command:
docker-compose --version