Last active
October 31, 2020 16:14
-
-
Save bdnf/5566dd9631de3bea97b77b15456d759c to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose on EC2 (with User-Data script)
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
#! /bin/sh | |
yum update -y | |
amazon-linux-extras install docker | |
service docker start | |
usermod -a -G docker ec2-user | |
chkconfig docker on | |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment