4 ms·
You can specify the digest of a base image when building a new image. You cannot specify the digest of a built image when starting a container.
by mleonhard 5y ago
You can specify the digest of a base image when building a new image. You cannot specify the digest of a built image when starting a container.
- cpuguy83 5y agoA built (as in `docker build && docker run`) image does not have a digest because the digests are for the tar+gzipped versions of the layers (+ the image config and manifest). The layers are not tar+gzipped until you attempt to push them, at which point the digest is calculated.