Installing docker & docker-compose on AWS Linux AMI

So you’re ready to go with docker and want to get a staging environment on AWS, run the commands below and you are good to go.

If you’d like to learn how to use a lean open and malleable easy to use Magento2 docker stack, try this one for free here:

Magento 2 Docker Development

Spin on Linux AMI
sudo yum update
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
sudo curl -L`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
sudo chmod +x /usr/local/bin/docker-compose
sudo service docker start
sudo chkconfig docker on