Courses
Docker for Beginners: Run an App Without Fighting the Host
Check Yourself: Your First Containers
Five scenario questions on ports, exit codes, logs, exec and cp. If you miss more than one, reread the lessons in this section.
Course content
Join this Course
Sign in to save your progress.
-
Before You Run Anything
-
What Docker Is and Why Containers Exist
-
Install Docker Desktop on Windows With WSL2
-
-
-
Your First Containers
-
Run, Stop and Remove a Container
-
Logs, Exec and Copying Files In and Out
-
-
-
Images
-
Pull an Image and See What Layers Are
-
Build a Small Image With a Dockerfile
-
-
-
Data and Networks
-
Volumes: Keep Data When a Container Dies
-
Networks: Let Two Containers Talk by Name
-
-
-
More Than One Service
-
Docker Compose: Two Services With One File
-
Clean Up: Images, Containers and Disk Space
-
When Something Won't Start
-
-
- Final Check: Docker for Beginners
1.
You run docker run -d --name hello-web -p 8080:80 nginx:1.30-alpine. What does 8080:80 mean?
2.
You try to start a second container with the same name and get an error that the name is already in use. The first container is stopped. What is the cleanest fix?
3.
docker run -p 8080:80 fails with "port is already allocated" for port 8080. What is the most likely cause?
4.
You write a file inside a running container with docker exec, then remove the container with docker rm -f and start a new one from the same image. Is the file there?
5.
A container shows Exited (3) in docker ps -a. Where do you look first for the reason?
About
Five scenario questions on ports, exit codes, logs, exec and cp. If you miss more than one, reread the lessons in this section.
- Duration
- 5 min
- Last update
- 08/04/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.