Courses
Docker Intermediate: Images and Compose That Survive Real Projects
Final Check: Docker Intermediate
Fifteen scenario questions across the whole course. If you get twelve or more right, you can build lean images, keep data and secrets safe, wire services together and move images between machines.
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.
A build is slow because the context is large, and the image also contains a .git folder. Which single change helps both problems?
2.
A script entrypoint.sh starts with #!/bin/sh, ends with exec "$@", and works in the image built on Linux. Built on Windows, the container fails with no such file or directory for /entrypoint.sh, though the file is plainly there. What is the likely cause?
3.
Which Dockerfile ending lets docker run IMAGE --verbose pass the option to the program called converter?
4.
You mount a new named volume at /data in your image. The image has /data with the app's default files. A later image version changes those files, but containers still show the old ones. Why?
5.
Which place is the best choice for the data folder of a database on Docker Desktop for Windows?
6.
A container running as user 1000 cannot write to a folder that you bind-mounted from a Linux directory owned by root. Which fix is best?
7.
From a container on a user-defined network you can reach http://lab-web, but a container on a different network cannot. Which statement describes what happened?
8.
You want the web service in Compose reachable only from your own computer. Which port line does that?
9.
In a Compose file, a variable ${API_KEY:?API_KEY is required} is used and API_KEY is not set. What happens when you run docker compose up?
10.
Your Compose project has compose.yaml and compose.override.yaml. You run docker compose up with no extra options. Which files are used?
11.
Which of these keeps a build token out of the final image and out of the image history?
12.
You pull app:1.4.0 on a server and later find that the running image differs from the one your team tested. What is the safest habit to prevent it?
13.
You pushed an image to a registry running in a container on your own computer, and you want to confirm that the push worked before you go to the other computer. What is a simple check?
14.
Which statement about Docker Hub is true for the steps in this course?
The course ran the registry steps against a local registry, so the Docker Hub steps are described but were not tested against Hub itself.
All Docker Hub commands were run with a real account during the course.
You must always use a password, never an access token, for docker login.
Docker Hub needs no login to push.
15.
You want to paste the output of docker compose config into a support chat so someone can check your file. What should you do first?
About
Fifteen scenario questions across the whole course. If you get twelve or more right, you can build lean images, keep data and secrets safe, wire services together and move images between machines.
- Duration
- 15 min
- Last update
- 08/10/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.