sudo yum update -y sudo amazon-linux-extras install docker # Start Docker service sudo service docker start
sudo amazon-linux-extras install docker sudo service docker start sudo usermod -a -G docker ec2-user