Last active
February 16, 2023 17:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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