nerdexam
Broadcom-VMware

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…

Explain Container and Kubernetes Concepts

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)
  • A
    7% (1)
  • B
    7% (1)
  • C
    87% (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 is docker image build, which is an alias for docker build.
  • B. oci build - There is no standard oci CLI tool with a build subcommand; 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

#Docker#Container images#docker build#Container basics

Community Discussion

No community discussion yet for this question.

Full 1V0-71.21 Practice