Browse code

Added example for using image digest in the docker run command

Signed-off-by: Shoubhik Bose <sbose78@gmail.com>

Added explanation for the example with image's digest ( as per @thaJeztah 's comment

Signed-off-by: Shoubhik Bose <sbose78@gmail.com>

Wrapped to ~80 chars

Signed-off-by: Shoubhik Bose <sbose78@gmail.com>

Shoubhik Bose authored on 2016/06/13 18:36:44
Showing 1 changed files
... ...
@@ -190,6 +190,11 @@ Images using the v2 or later image format have a content-addressable identifier
190 190
 called a digest. As long as the input used to generate the image is unchanged,
191 191
 the digest value is predictable and referenceable.
192 192
 
193
+The following example runs a container from the `alpine` image with the 
194
+`sha256:9cacb71397b640eca97488cf08582ae4e4068513101088e9f96c9814bfda95e0` digest:
195
+
196
+    $ docker run alpine@sha256:9cacb71397b640eca97488cf08582ae4e4068513101088e9f96c9814bfda95e0 date
197
+
193 198
 ## PID settings (--pid)
194 199
 
195 200
     --pid=""  : Set the PID (Process) Namespace mode for the container,