Last active
November 27, 2020 17:44
-
-
Save Ammly/0bf9206c122747144dd7c0b3a887af94 to your computer and use it in GitHub Desktop.
Install Docker, Docker-Compose and Git on Amazon Linux 2
This file contains hidden or 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 | |
sudo yum update -y | |
sudo amazon-linux-extras install docker -y | |
sudo yum install docker -y | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
sudo chkconfig docker on | |
docker info | |
# Install git | |
sudo yum install -y git | |
# install docker-compose | |
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 | |
docker-compose version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment