Docker commands which take the name of an image accept four different forms:
Type | Example |
---|---|
Short ID | 693bce725149 |
Name | hello-world (defaults to :latest tag) |
Name+tag | hello-world:latest |
Digest | hello-world@sha256:e52be8ffeeb1f374f440893189cd32f44cb166650e7ab185fa7735b7dc48d619 |
Note: You can only refer to an image by its digest if that image was originally pulled using that digest. To see the digest for an image (if one is available) run docker images --digests
.