From b74db4d8e35a7c94796c4cf55ec5183a4ff0b1f1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 13 Jun 2016 20:07:17 +0200 Subject: [PATCH] Merge pull request #23485 from sbose78/22514-run-image-using-digest Fixes #22514 - Added example for using image digest in the docker run command (cherry picked from commit 3bb42723acf4a6ade3f9f1a1819ca6ef530c2032) Signed-off-by: Sebastiaan van Stijn --- docs/reference/run.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/reference/run.md b/docs/reference/run.md index 447ae12cda..36161f29e8 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -190,6 +190,11 @@ Images using the v2 or later image format have a content-addressable identifier called a digest. As long as the input used to generate the image is unchanged, the digest value is predictable and referenceable. +The following example runs a container from the `alpine` image with the +`sha256:9cacb71397b640eca97488cf08582ae4e4068513101088e9f96c9814bfda95e0` digest: + + $ docker run alpine@sha256:9cacb71397b640eca97488cf08582ae4e4068513101088e9f96c9814bfda95e0 date + ## PID settings (--pid) --pid="" : Set the PID (Process) Namespace mode for the container,