Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Created July 2, 2019 09:32
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 gayanvirajith/65e9b51a076151031ec3e95777844a68 to your computer and use it in GitHub Desktop.
Save gayanvirajith/65e9b51a076151031ec3e95777844a68 to your computer and use it in GitHub Desktop.
Install Docker on an Amazon EC2 instance
#!/bin/bash
sudo yum update -y && sudo amazon-linux-extras install docker && sudo service docker start && sudo usermod -a -G docker ec2-user && docker info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment