Safeguard
Developer Tools•

How do I cite a container image in a methods section so it can be rerun?

A tag can move but a digest cannot. Cite the image digest in your methods so readers pull the same bits, and rescan it before you publish.

Safeguard Security Team
3 min read

Cite the container image by its digest, not only its tag. A tag such as 24.04 can be repointed to a newer image, while a digest is an immutable identifier of the exact content. Writing the full digest in your methods lets readers pull the same image you used.

Tag versus digest

Docker's reference documents both. Pulling by name and tag is convenient and, when you pull again, gets you the latest version behind that tag. Docker's guide describes the digest as an immutable identifier and shows pulling in the form name at sha256 and a long hash.

docker pull ubuntu@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30

That command comes from Docker's documentation as an example of the form. Use the digest of your own image.

What to write in methods

  1. The image name and the tag you used, for readability.
  2. The full digest, in a sentence or a supplement table.
  3. The date you pulled it.
  4. The Dockerfile or definition file, archived with a DOI. See how to get a DOI for a release.
  5. The host architecture if results depend on it.
ItemWhy it matters
TagHuman readable hint
DigestExact content, cannot silently change
Pull dateContext for what a tag meant then
Build fileLets others rebuild if the image disappears

Why also scan before publishing

An immutable image is also an immutable set of known flaws. If the base layer holds a vulnerable library, your digest pins that library forever. Scan the image, fix what matters, rebuild, and cite the new digest. The trade off is the same one covered in pin versions without freezing vulnerabilities.

For why signing a digest beats signing a tag, see why sign the image digest, not the tag.

Keep a copy

Registries can remove images. Keep the image as an archive file, or keep a definition that rebuilds it, alongside the paper. A digest only helps if something still serves that content.

Try it yourself

Click through it at your own pace, or open it full screen. Look at what a scan finds inside an image you have pinned.

Quick check

Is a tag good enough for reproducibility?

Not on its own. A tag can be moved to different content later. A digest identifies the exact image.

Does pinning a digest make the image secure?

No. It makes the image repeatable. Any vulnerabilities inside stay until you rebuild, so scan before you cite it.

Safeguard's SBOM and dependency scanning includes container image scanning, and a free scan is available.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.