Courses
Docker Intermediate: Images and Compose That Survive Real Projects
Check Yourself: Compose for Real Apps
Five scenario questions on depends_on, health checks, job dependencies, env files and secrets. If you miss more than one, reread the lessons in this section.
Course content
Join this Course
Sign in to save your progress.
-
Dockerfiles That Don't Rot
-
.dockerignore and What Belongs in the Build Context
-
ENTRYPOINT, CMD and When to Override Them
-
-
-
Data That Outlives Containers
-
Bind Mounts vs Named Volumes: Which One When
-
Permissions, Ownership and Why the Container Can't Write
-
-
-
Networks Beyond Defaults
-
Bridge Networks, Aliases and DNS
-
Publish Ports Without Exposing Everything
-
-
-
Compose for Real Apps
-
Services, depends_on and Healthchecks
-
Environment Files, Secrets and What Not to Commit
-
-
-
Images Across Machines
-
Tag Images So You Can Find Them Later
-
Push and Pull From a Registry Without Surprises
-
-
- Final Check: Docker Intermediate
1.
Your Compose file has depends_on with db in the short form. The app still fails on its first connection, and works when you start it again a minute later. Why?
2.
A health check uses curl, but the image only has wget. The container never becomes healthy and the service that depends on it never starts. What is the cause?
3.
A migrate service runs once and exits with code 0. Which depends_on condition makes another service wait until the migration has finished successfully?
4.
Your .env file contains GREETING=hello, and the Compose file has no mention of GREETING. Does the container see GREETING?
5.
You need a database password available to a container, and you do not want it visible to anyone who runs docker inspect. What is the better choice?
About
Five scenario questions on depends_on, health checks, job dependencies, env files and secrets. If you miss more than one, reread the lessons in this section.
- Duration
- 5 min
- Last update
- 08/01/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.