→ This guide covers installing Docker, creating, removing, stopping, and starting containers in AWS.
→ First, create an EC2 instance on AWS, then proceed with the rest of the lab.
yum install docker -y
👉 Installs Docker on Amazon Linux (for Ubuntu, use apt install docker.io -y
).
which docker
docker --version # OR docker -v
👉 Checks if Docker is installed and its version.
service docker status
docker info
👉 Verifies whether Docker is running.
service docker start
docker info
👉 Starts Docker and displays system info.