Skip to content

Instantly share code, notes, and snippets.

@tirasmuturi
Forked from brianz/install-docker.sh
Created August 10, 2018 10:16
Show Gist options
  • Save tirasmuturi/7f830e5ba4eb887933dc590fde7e4359 to your computer and use it in GitHub Desktop.
Save tirasmuturi/7f830e5ba4eb887933dc590fde7e4359 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