Created
April 26, 2018 03:55
-
-
Save benfogel/041e3c4b8b856cdcdfd8d9d5aa0a7f73 to your computer and use it in GitHub Desktop.
Installing docker-compose on Amazon Linux AMI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update | |
sudo yum install -y docker | |
sudo usermod -a -G docker ec2-user | |
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 | |
sudo service docker start | |
sudo chkconfig docker on |
Sometimes I have to reboot after installing docker.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After you do the curl command , it'll put docker-compose into the
which is not on the PATH To fix it, create a symbolic link:
And now if you do: docker-compose --version
You'll see that docker-compose is now on the PATH