Interview Prep/Docker/Multi-stage builds, cache, tags and registries

How do you inspect a remote image's size, platforms and digest without pulling it?

BeginnerScenarioMulti-stage builds, cache, tags and registries
Answer

Situation read → Need metadata only.

What I'd do →

docker buildx imagetools inspect nginx:1.27
docker manifest inspect nginx:1.27
crane manifest nginx:1.27 | jq
skopeo inspect docker://nginx:1.27
crane digest nginx:1.27

Why → These talk to the registry API and fetch manifests, not layers.

Interview tip → imagetools inspect shows the manifest list with per-platform digests.

All Docker questions Roadmap: Docker & containers

More on Multi-stage builds, cache, tags and registries