DockerDocker
DCA · Question #31
DCA Question #31: Real Exam Question with Answer & Explanation
The correct answer is C: docker image inspect --format {{.Architecture}} {{.OS}} ' <image-id>. To identify an image's architecture and operating system, the docker image inspect command should be used with the --format flag.
Submitted by miguelv· Apr 18, 2026Image Creation, Management, and Registry
Question
The output of which command can be used to find the architecture and operating system an image is compatible with?
Options
- Adocker image inspect --filter {{.Architecture}} {{.OS}} ' <image-id>
- Bdocker image ls <image-id>
- Cdocker image inspect --format {{.Architecture}} {{.OS}} ' <image-id>
- Ddocker image info <image-id>
Explanation
To identify an image's architecture and operating system, the docker image inspect command should be used with the --format flag.
Common mistakes.
- A. The
--filterflag is used to filter lists of resources, not to format the output of a single resource inspection, and its syntax here is incorrect for output formatting. - B. The
docker image lscommand is used to list Docker images but does not provide detailed information like architecture or operating system for a specific image. - D. The
docker image infocommand provides information about the Docker daemon and its environment, not about a specific Docker image.
Concept tested. Docker image inspection and metadata formatting
Reference. https://docs.docker.com/engine/reference/commandline/image_inspect/
Topics
#Docker image inspect#Image metadata#Go template#Platform compatibility
Community Discussion
No community discussion yet for this question.