How to Install Docker on Amazon Linux 2
After doing your initial sudo yum update -y you can install docker with: sudo yum install -y docker Add the ec2-user to the docker group (to avoid the need to sudo when running docker commands): Note! Log out and back in for this change to take effect. sudo usermod -a -G docker ec2-user Enable the service to start automatically after a reboot, then actually start the service itself: sudo systemctl enable docker sudo service docker start Final check to verify everything looks ok would be docker -v and docker ps -a should result in output like:...