Docker: Zero to Confident
0%
docker-lab, bash
Welcome to the DevOpsLesson Docker Lab 🐳
This is a safe, simulated Docker environment. Nothing runs on your machine.
Follow the steps on the left. Type a command below, or type 'help' anytime.
Every command this lab teaches
Docker: Zero to Confident is 18 steps, about 25 minutes. Each one asks a question, you type the answer in the terminal above, and it is checked before you move on. Nothing is installed and nothing can break.
Beginner6 steps
- Print the installed Docker version.
docker --version - Show system-wide Docker information.
docker info - Pull the official hello-world image.
docker pull hello-world - Show all local images.
docker images - Run a container from the hello-world image.
docker run hello-world - List all containers, including stopped ones.
docker ps -a
Intermediate6 steps
- Download the nginx image.
docker pull nginx - Run nginx detached, named "web", mapping 8080→80.
docker run -d --name web -p 8080:80 nginx - Show running containers.
docker ps - View the logs from the "web" container.
docker logs web - Execute "ls /" inside the "web" container.
docker exec web ls / - Inspect the "web" container.
docker inspect web
Advanced6 steps
- Stop the "web" container.
docker stop web - Start the "web" container back up.
docker start web - Run an alpine container with MODE=prod set.
docker run -e MODE=prod alpine env - Create a volume called "appdata".
docker volume create appdata - Force-remove the running "web" container.
docker rm -f web - Remove the nginx image.
docker rmi nginx