- Create aws ec2 instance of type Amazon Linux 2 AMI
- Connect to the instance
- Install Docker:
sudo yum update -y
sudo amazon-linux-extras install docker
sudo usermod -a -G docker ec2-user
- reboot instance and reconnect
sudo service docker start
docker --version
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
`create aws ec2 instance Amazon Linux 2 AMI` |