Question : how to install and enable docker on command line with EC2 instance
Answered by : quaint-quelea-j29gugw3q5qb
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)
Source : | Last Update : Sun, 25 Oct 20