This guide will walk you through the steps to install Docker on an Amazon Linux EC2 instance.
- An Amazon Linux EC2 instance
- SSH access to the instance
ssh -i copykeypair.pem ec2-user@<EC2-INSTANCE-PUBLIC-IP-ADDRESS>
sudo yum update -y
sudo yum install -y docker
sudo service docker start
✌️Step 5: To verify that Docker is installed correctly, run the following command to check the version:
sudo docker --version
This should install Docker on your EC2 instance and allow you to start using it.
You can also use the below commands to check if the docker is in active status or not on your machine:
sudo systemctl is-active docker
To get info about the docker:
sudo docker info