Skip to content

Instantly share code, notes, and snippets.

@xsqian
Last active February 16, 2023 17: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 xsqian/41feaeaa5534968d8ef36349db657036 to your computer and use it in GitHub Desktop.
Save xsqian/41feaeaa5534968d8ef36349db657036 to your computer and use it in GitHub Desktop.
how to install docker on to an AWS EC2 instance with AWS linux AMI
sudo amazon-linux-extras install docker
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -aG docker ec2-user # allows you to run `docker` commands without `sudo`
sudo reboot
docker info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment