Docker Referencing images


Example

Docker commands which take the name of an image accept four different forms:

TypeExample
Short ID693bce725149
Namehello-world (defaults to :latest tag)
Name+taghello-world:latest
Digesthello-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.