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.
More on Multi-stage builds, cache, tags and registries
Show a multi-stage Dockerfile for a Java Spring Boot app and explain what you gain.BeginnerCI rebuilds from scratch every run and takes 12 minutes. How do you bring it down?IntermediateYou tag every build `myapp:latest`. A rollback is requested. What happens?BeginnerHow do you promote an image from dev to prod registry without rebuilding?IntermediateDisk on the build server keeps filling up with images.BeginnerWhen do you use `--no-cache` and when is it a smell?Beginner