Skip to content

Instantly share code, notes, and snippets.

@dhavaln
Last active October 3, 2023 13:52
Show Gist options
  • Save dhavaln/3fd5bc12e2dc4465a4821335bbbdf3b5 to your computer and use it in GitHub Desktop.
Save dhavaln/3fd5bc12e2dc4465a4821335bbbdf3b5 to your computer and use it in GitHub Desktop.
Install Docker on EC2
#! /bin/sh
yum update -y
amazon-linux-extras install docker
service docker start
usermod -a -G docker ec2-user
chkconfig docker on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment