Pcornel
Containers

Images & Registries

Cheat sheet · https://pcornel.dk/topic.php?topic=6074

Back to the Topic

Answer

Images are layered, read-only filesystems plus metadata, stored in registries (Docker Hub, GHCR, ECR, Harbor) and referenced by name:tag or immutable digest.

Remember

Pin production images by digest or immutable tags. Use a private registry or mirror to avoid rate limits. Scan and sign images before deployment.

First checks

  • docker image ls --digests — local images with digests
  • docker ps -a — containers and exit codes
  • docker logs <c> — container output
  • docker inspect <c> — config, mounts, network, state

Verify in this order

build → tag → push to registry → pull by tag/digest → run

Where it usually breaks

A successful pull does not prove the intended version was selected, a familiar tag does not prove immutability, and a signed image does not prove its runtime configuration or application behavior is safe. Mirror/cache behavior can also make stale content look like an origin issue.

Images & Registries verification boundary matrix

BoundaryInspectHealthy interpretationDo not infer
IntentImage layers and copy-on-writeIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeTags vs immutable digests / Pull/push workflowsOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateRegistry authenticationIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomePrivate registries and mirrorsThe original bounded check succeeds in the same time windowProduction correctness outside this scope

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6074

Confirmation

Confirm action

Continue?