Challenge, Easy,  on  Containers

Docker 101: Pull a Container Image by Digest

The container image repository registry.iximiuz.com/acme/app contains over a dozen tagged versions of an application. Your team has identified that a specific build - pinned by its digest - needs to be pulled for a deployment.

The target image digest is:

sha256:76d822da72eca8d151be12322d54f9ee5ffc330b74f0da29344f06d85761d114
Container image name format visualized: registry domain, repository path, tag, and digest.

Pull the image by digest

Tags are mutable - someone can push a completely different image under the same tag at any time. Digests, on the other hand, are content-addressable hashes that uniquely and immutably identify a specific image build.

Pull the image registry.iximiuz.com/acme/app using the digest above.

Hint 1

To pull an image by digest, use the @ separator instead of : (which is used for tags). The general form is:

docker pull <registry>/<repo>/<name>@<digest>