-
-
Save vlobachev/3bbdbcfacf23dbe2f38edc513afc8ac1 to your computer and use it in GitHub Desktop.
Install docker on Amazon Linux
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 | |
| # | |
| # steps taken verbatim from: | |
| # http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker | |
| # | |
| sudo yum update -y | |
| sudo yum install -y docker | |
| sudo service docker start | |
| sudo usermod -a -G docker ec2-user | |
| # if you need to run docker from jenkins runner | |
| sudo usermod -a -G docker jenkins | |
| # log out and log in to pickup the added group | |
| # Also install some common sense stuff | |
| sudo yum install -y git | |
| sudo yum -y groupinstall "Development Tools" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Work well on aws instance