Software Testing / Learning brief

Tom finds out why a container keeps stopping

What this means in plain language

Tom reads logs, the exit code and inspect output, fixes a port clash and uses exec on a running container.

Understand the full idea, step by step

Analogy: a doctor's check-up of a patient. A doctor first reads the chart, then listens to the patient, then looks at the patient's details. If the patient has already left, only the chart remains.

The chart is the log, the listening is exec, and the details are the inspect report. Tom, a tester at Daily List, a to-do list app, plays the doctor for a container that keeps stopping.

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Hands-on steps for this tool. The people and the app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 5 sources
  1. Market practice

    docker container logs (Docker Docs, CLI reference) ↗ — Docker · Docker docs for container logs: logs fetches the output a container wrote, with options such as follow and tail (search excerpt, page not opened)

    Says docker logs fetches the output a container wrote, with options such as follow, tail, since and timestamps. Vendor documentation. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  2. Market practice

    Running containers (Docker documentation) ↗ — Docker · Docker docs on running containers: 125 means Docker failed, 126 means the command could not be run, 127 means it was not found, and other codes come from the command (search excerpt, page not opened)

    The Docker page on running containers: exit code 125 means Docker itself failed, 126 means the command could not be run and 127 means it was not found. Any other code is the code of the command inside the container. · Checked 2026-10-31

    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.

  3. Market practice

    Container exec and inspect (Docker documentation) ↗ — Docker · Docker docs on exec and inspect: exec runs only while the main process runs, and inspect prints container details (search excerpt, page not opened)

    The Docker pages on exec and inspect: exec runs a command only while the main process of the container is running. Inspect prints detailed information about a container, and a format option picks out one field. · Checked 2026-10-31

    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.

  4. Market practice

    Publishing and exposing ports (Docker documentation) ↗ — Docker · Docker guide on publishing ports: the host port comes first, and leaving it out lets Docker choose a free one (search excerpt, page not opened)

    The Docker guide on publishing ports: the publish option takes the host port first and the container port second. Leaving out the host port lets Docker choose one, which avoids clashes. The port command shows the mappings. · Checked 2026-10-31

    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.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREDebug a container: logs, exec, inspect, port clashes and exit codesFind out why a container stops at once or will not start, using logs, exec, inspect and the exit code, and fix a port clash.Opens at L0 Explain simply · about 16 min

Related briefs

Tom keeps three ideas out of fifteen

Tom asks an assistant for fifteen test ideas for a repeating task. He keeps the three that match a risk, writes one charter, and asks Nina about the one thing the requirement never said out loud.

READ BRIEF