Courses
Docker Advanced: Builds and Containers That Hold Up in Production
Check Yourself: Beyond One Compose File
Five scenario questions on merged ports, override files, profiles, watch and CI logins. If you miss more than one, reread the lessons in this section.
Course content
Join this Course
Sign in to save your progress.
-
Faster Builds
-
BuildKit: Cache Mounts and Why Rebuilds Are Slow
-
Multi-Stage Builds Without Shipping the Compiler
-
-
-
Images That Don't Leak
-
Non-Root Users and Dropping Capabilities
-
Pin Digests, Base Image Updates and CVEs
-
-
-
Running Under Load
-
Resource Limits, Restart Policies and Healthchecks
-
Logging Drivers and What Happens When Disk Fills
-
-
-
Beyond One Compose File
-
Compose Profiles, Watch and Override Files
-
Private Registries and Auth Without Sticking Tokens in Files
-
-
-
Production Concerns
-
Read-Only Root Filesystems and tmpfs
-
Rolling a Service Forward on One Host
-
When Docker Desktop Is the Wrong Tool
-
-
- Final Check: Docker Advanced
1.
compose.yaml publishes 127.0.0.1:8471:80 for the web service. compose.prod.yaml lists ports with 8080:80 for the same service. You run docker compose with both files. Which ports are published?
2.
Why should a production server start Compose with an explicit file list instead of plain docker compose up?
3.
A Compose file has a database admin tool with profiles debug. A teammate runs docker compose up and asks why the tool did not start. What do you tell them?
4.
During development you use docker compose watch with a sync action for the src folder. You edit a file in src. What happens?
5.
How should a CI job log in to a private registry?
Commit a config.json with the auth value to the repository.
Use the personal account of the team lead so it always has access.
Take the token from the CI secret store and pass it to docker login with --password-stdin, using a token with the smallest scope that works.
docker login with -p and the password in the job script.
About
Five scenario questions on merged ports, override files, profiles, watch and CI logins. 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.