Created
July 16, 2022 00:57
-
-
Save brunomarks7/b439924ddb49afe3757caf6fd7e0ec65 to your computer and use it in GitHub Desktop.
Install Docker and Docker Compose - Amazon Linux 2 instance
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/bash | |
yum update -y | |
amazon-linux-extras install docker -y | |
service docker start | |
usermod -a -G docker ec2-user | |
chkconfig docker on | |
yum install -y git | |
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
docker-compose version | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment