containerization-and-devops

Class 1 - Docker Basics (Hands-on)

Objective


Environment Used


Experiment Execution with Screenshots

🔹 Step 1: Launch WSL Ubuntu

Docker commands are executed inside WSL Ubuntu terminal.

Commands executed:

wsl

Step 1 -- WSL Started


🔹 Step 2: Verify Docker Installation

Docker client and server versions are verified.

Commands executed:

docker version

Step 2 -- Docker Version


🔹 Step 3: Inspect Docker System Information

This step checks Docker engine configuration and runtime details.

Commands executed:

docker info

Step 3 -- Docker Info


🔹 Step 4: View Available Docker Images

Initially checks for locally available Docker images.

Commands executed:

docker images

Step 4 -- Docker Images


🔹 Step 5: Pull and Run Ubuntu Image

Ubuntu image is pulled automatically if not available and container is executed.

Commands executed:

docker run ubuntu
docker run -it --name test ubuntu bash
exit

Step 5 -- Ubuntu Container Execution


🔹 Step 6: Check Container Status

Both running and stopped containers are inspected.

Commands executed:

docker ps
docker ps -a

Step 6 -- Docker Container Status


Result

Docker was successfully verified on WSL Ubuntu. Ubuntu containers were created, executed, exited, and inspected using Docker CLI commands.


Learning Outcome


Theory Index | Next Class ->