Skip to content

Instantly share code, notes, and snippets.

@chris-zen
Forked from brianz/install-docker.sh
Created July 20, 2018 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-zen/02ce5f15444f41f7b20c75eba999072e to your computer and use it in GitHub Desktop.
Save chris-zen/02ce5f15444f41f7b20c75eba999072e to your computer and use it in GitHub Desktop.
Install docker on Amazon Linux
#!/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
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment