Courses
Docker Intermediate: Images and Compose That Survive Real Projects
Check Yourself: Data That Outlives Containers
Five scenario questions on mounts, copy-in behaviour, speed, ownership and read-only errors. 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.
You mount an empty folder from your Windows disk over /usr/share/nginx/html and nginx now answers 404 for every page. Which statement explains it?
2.
You mount a brand-new named volume at a path where the image already has files. What do you see in the container?
3.
A Postgres container on Windows is slow with a bind-mounted folder and fast with a named volume, using the same image. What is the most likely reason?
4.
A non-root container gets Permission denied when it writes to a freshly created named volume. docker run with stat shows the folder owned by root with mode drwxr-xr-x. What is a clean fix for your own image?
5.
A container fails with the message Read-only file system when it writes to a mounted folder, and with Permission denied when it writes to a different mounted folder. What does that tell you?
About
Five scenario questions on mounts, copy-in behaviour, speed, ownership and read-only errors. 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.