1V0-71.21 · Question #59
Which command can be used to build a container image?
The correct answer is C. docker build. docker build is the standard command for building a container image from a Dockerfile - it's been the core Docker CLI command for this purpose since Docker's early days and remains the canonical way to create images. Why the distractors are wrong: A. docker image create - This…
Question
Which command can be used to build a container image?
Options
- Adocker image create
- Boci build
- Cdocker build
- Dtanzu build
How the community answered
(15 responses)- A7% (1)
- B7% (1)
- C87% (13)
Explanation
docker build is the standard command for building a container image from a Dockerfile - it's been the core Docker CLI command for this purpose since Docker's early days and remains the canonical way to create images.
Why the distractors are wrong:
- A.
docker image create- This command doesn't exist; the closest real command isdocker image build, which is an alias fordocker build. - B.
oci build- There is no standardociCLI tool with abuildsubcommand; OCI (Open Container Initiative) is a specification, not a CLI. - D.
tanzu build- Tanzu is VMware's application platform; it's unrelated to building standard container images directly.
Memory tip: Think of it as a construction analogy - you're a Docker contractor, and you build the container. The syntax mirrors common sense: docker build . tells Docker to build an image from the current directory's Dockerfile.
Topics
Community Discussion
No community discussion yet for this question.