Answers for "how to install and enable docker on command line with EC2 instance"

0

how to install and enable docker on command line with EC2 instance

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)
Posted by: Guest on October-18-2020

Code answers related to "how to install and enable docker on command line with EC2 instance"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language