Skip to Content
Docker Intermediate: Images and Compose That Survive Real Projects
Intermediate
0 likes
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

Sign in to save your progress.

Course Home
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?
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?
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?
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?

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 comment

No comments yet.