Skip to content

Instantly share code, notes, and snippets.

@brianz
Last active July 7, 2023 07:32
Show Gist options
  • Save brianz/8458fc666f5156fdbbc2 to your computer and use it in GitHub Desktop.
Save brianz/8458fc666f5156fdbbc2 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"
@doertedev
Copy link

If you're running Amazon linux 2, just type # amazon-linux-extras install docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment