SkillSprout
Chapter 1

Docker Fundamentals

Learn Docker from first principles, then work through containers, images, Dockerfiles, builds, networking, storage and Compose.

1What Docker Is and Why It Exists
Beginner
2 min
2How Containers Isolate Processes
Beginner
2 min
3Install Docker and Understand the First Run
Beginner
1 min
4Run and Manage Your First Container
Beginner
2 min
5Pull Images and Inspect Docker Resources
Beginner
1 min
6Debug Containers with Logs and Inspect
Intermediate
1 min
7Images, Tags and Layers
Beginner
2 min
8Build a Custom Image
Beginner
2 min
9Dockerfile Instructions Explained
Intermediate
2 min
10Run as a Non-root User and Handle Health
Advanced
2 min
11Build Context, Cache and Image Size
Intermediate
2 min
12Container Communication and Port Mapping
Intermediate
2 min
13IP Addresses, Ports and Container DNS
Beginner
1 min
14Network Types and Troubleshooting
Intermediate
2 min
15Persistent Data and Storage
Intermediate
2 min
16Choose Between Volumes, Bind Mounts and tmpfs
Intermediate
1 min
17Back Up Data and Diagnose Mount Permissions
Advanced
1 min
18Create a Small Multi-Service Application
Intermediate
2 min
19YAML for Docker Compose
Beginner
1 min
20Compose Lifecycle and Environment Files
Intermediate
1 min

Chapter quiz

Docker Fundamentals · 24 questions

  1. 1.What is an image?

  2. 2.Which component executes container operations?

  3. 3.What is Docker Hub?

  4. 4.Which command starts an image as a container?

  5. 5.What does `-p 8080:80` mean?

  6. 6.Which command displays stopped containers too?

  7. 7.What does `nginx:alpine` identify?

  8. 8.Where do runtime files created inside a container live?

  9. 9.Which identifier is more immutable?

  10. 10.Which instruction chooses the starting image?

  11. 11.Which instruction copies build context files?

  12. 12.What happens to `CMD` when `docker run image command` supplies a command?

  13. 13.What is the build context?

  14. 14.What does `.dockerignore` improve?

  15. 15.Why copy package manifests before source?

  16. 16.What does `8080:80` mean?

  17. 17.Which method resolves container names on a user-defined bridge?

  18. 18.Does `EXPOSE 80` publish port 80?

  19. 19.Which storage option is managed by Docker?

  20. 20.When is a bind mount most useful?

  21. 21.What happens to tmpfs data?

  22. 22.What is YAML indentation used for?

  23. 23.Where are Compose services defined?

  24. 24.What is Compose `depends_on` primarily responsible for?

0 of 24 answered