Shell/Bash: how to install and enable docker on command line with ec2 instance Example

By

Shell/Bash Example: This is the "how to install and enable docker on command line with ec2 instance" Example. compiled from many sources on the internet by SimpleTutorials.org

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)


* Summary: This "how to install and enable docker on command line with ec2 instance" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others