<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker Digest on StackOnward</title><link>https://stackonward.com/tags/docker-digest/</link><description>Recent content in Docker Digest on StackOnward</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 11 Sep 2026 05:00:00 +0800</lastBuildDate><atom:link href="https://stackonward.com/tags/docker-digest/index.xml" rel="self" type="application/rss+xml"/><item><title>Why Pin a Docker Image Digest: Reproducible Deploys and Rollbacks</title><link>https://stackonward.com/posts/docker-image-digest-pinning/</link><pubDate>Fri, 11 Sep 2026 05:00:00 +0800</pubDate><guid>https://stackonward.com/posts/docker-image-digest-pinning/</guid><description>&lt;p&gt;Pin a Docker image digest by writing the production image as &lt;code&gt;repository:tag@sha256:digest&lt;/code&gt;. The version tag shows which release you planned. The digest is the content Docker must pull. &lt;code&gt;latest&lt;/code&gt;, &lt;code&gt;stable&lt;/code&gt;, or a movable version tag cannot guarantee that a rebuild or rollback returns the original image.&lt;/p&gt;
&lt;figure&gt;
 &lt;img src="https://stackonward.com/images/posts/docker-image-digest-pinning/en/image-identity-chain.svg" alt="A movable tag points to an OCI index digest, which selects amd64 or arm64 platform manifests, and the running container records the actual image" loading="lazy" decoding="async"&gt;
 &lt;figcaption&gt;Pinning the index digest freezes the platform set. Each node still pulls the manifest that matches its architecture.&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id="why-pin-a-docker-image-digest-instead-of-a-moving-tag"&gt;Why pin a Docker image digest instead of a moving tag&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://docs.docker.com/dhi/explore/security-concepts/digests/" target="_blank" rel="noopener"&gt;Docker&amp;rsquo;s image digest documentation&lt;span class="sr-only"&gt;(opens in a new tab)&lt;/span&gt;&lt;/a&gt; defines a digest as a SHA-256 identifier of image content. A registry maintainer can retarget the same tag to a patched image. The original digest does not move with the tag.&lt;/p&gt;</description></item></channel></rss>