→ This guide covers installing Docker, creating, removing, stopping, and starting containers in AWS.


1️⃣ Installing & Starting Docker on AWS EC2

→ First, create an EC2 instance on AWS, then proceed with the rest of the lab.

🔹 Install Docker:

yum install docker -y

👉 Installs Docker on Amazon Linux (for Ubuntu, use apt install docker.io -y).

🔹 Verify Installation:

which docker
docker --version   # OR docker -v

👉 Checks if Docker is installed and its version.

🔹 Check Docker Service Status:

service docker status
docker info

👉 Verifies whether Docker is running.

🔹 Start Docker Service:

service docker start
docker info

👉 Starts Docker and displays system info.


2️⃣ Basic Docker Commands 📌