Here are the steps to install docker on AWS EC2.
Terminal
#yum update
sudo yum update -y
#install docker
sudo amazon-linux-extras install docker -y
#Start docker
sudo service docker start
# ec2-Add docker to user's secondary group
#* This makes it possible to use docker commands without using sudo.
sudo usermod -a -G docker ec2-user
#Reconnect the terminal once
#Confirmation of installation
docker info
Recommended Posts