Docker Cheat Sheet/Run by digest

Run a container from an immutable image digest.

Section: Registries and Manifests

Run by digest

bash
bash
docker run nginx@sha256:<digest>
Explanation

Prevents silent changes behind mutable tags such as `latest`.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registries and Manifests
Run a container
Create and start a new container.
OpenIn sheetbash1 tag match
Inspect a container
Show low-level JSON metadata for a container.
OpenIn sheetbash1 tag match
Push an image
Upload an image to a registry.
OpenIn sheetbash1 tag match
Run detached
Run a container in the background.
OpenIn sheetbash1 tag match
Format inspect output
Render inspect output through a Go template.
OpenIn sheetbash1 tag match
Run interactively
Run an interactive shell inside a new container.
OpenIn sheetbash1 tag match