Docker from zero: images, containers, ports and volumes for testers
Understand an image and a container, run one with a port open, keep data in a volume, and stop and clean up, so you can start a test version of the app in a minute.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a flat-pack kit and the built furniture. The kit holds the parts and the instructions. You can build many pieces from one kit. A piece stands in a room. Stored items go with the piece if you throw it out, unless they sat on a separate shelf.
The kit does not change when you build a piece. Every new piece starts from the same parts.
Tom, a tester at Daily List, a to-do list app, wants a clean test copy of a helper service.
What it is: Docker is a free program on your computer that packs an app and runs a copy of it. An are the two parts: the image is the packed kit, and the container is the running copy. lets your browser reach a port inside that copy, and a volume keeps files after the copy is gone. People mix Docker up with GitHub Actions. GitHub Actions is a website that runs jobs, not a packer on your machine.
Why it matters: Tom needs a clean helper for one Daily List test. A shared install on his laptop mixes his data with Mei's. Docker lets him start the same image, open one port and keep files on a volume. He can delete the container when the test ends and start a fresh one next time.
PLAIN WORDS · 1 in this section
- github
- a web site that hosts code and runs checks
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB A flat-pack kit, the built furniture and a separate shelf unit.
- Run
- Map
- Keep
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The flat-pack kit | An image |
| The built piece in a room | A container |
| A separate shelf unit | A volume |
| A door to the room | Port mapping |
WHERE THIS PICTURE STOPS
- A kit is made once, but an image can be rebuilt.
- Container startup and application readiness are separate; neither has a universal fixed duration.
- A shelf unit is moved by hand, but a volume is managed by Docker.
HOOK
Kit, piece, shelf.
TELL A FRIEND
A flat-pack: kit, piece, shelf.
OFTEN MIXED UP WITH How the web works, for testers. That topic explains how the web works. This one starts a test copy of an app with Docker.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
Get started with Docker (Docker documentation and tutorials) ↗ — Docker · Docker material: images, containers, registries and Compose, with port mapping and volumes shown in tutorials
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Storage in Docker Engine ↗ — Docker · Container writable layer lifecycle and separately mounted persistent storage.
Publisher primary source opened and relevant sections read on 6 November 2026 for the Agile/DevOps domain analysis. Original explanations are used; no extensive source text is copied. Also read for the CI/Containers analysis; live documentation does not establish the version installed in a learner environment.
- Market practice
Docker volumes ↗ — Docker · Mounted-path persistence beyond container removal; explicit volume deletion.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
- Market practice
Docker build best practices ↗ — Docker · Moving image tags versus digest-pinned identities; controlled updates.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.