Amazon Linux 2 ami Installer Docker
sudo yum update -y
sudo amazon-linux-extras install docker
# Start Docker service
sudo service docker start
Glamorous Gibbon
sudo yum update -y
sudo amazon-linux-extras install docker
# Start Docker service
sudo service docker start
sudo yum update -y
sudo amazon-linux-extras install docker -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user (to avoid sudo command usage)
newgrp docker (to avoid sudo command usage)
sudo amazon-linux-extras install docker -y
sudo service docker start
sudo yum update -y
sudo usermod -a -G docker ec2-user