Bird
0
0

Which Docker command is used to build an image in a CI/CD pipeline?

easy📝 Syntax Q12 of 15
Docker - in CI/CD
Which Docker command is used to build an image in a CI/CD pipeline?
Adocker build
Bdocker run
Cdocker push
Ddocker commit
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to create Docker images

    The docker build command creates an image from a Dockerfile.
  2. Step 2: Differentiate from other Docker commands

    docker run starts containers, docker push uploads images, and docker commit saves container changes as images.
  3. Final Answer:

    docker build -> Option A
  4. Quick Check:

    Build image = docker build [OK]
Quick Trick: Build images with 'docker build' command [OK]
Common Mistakes:
  • Using 'docker run' to build images
  • Confusing 'docker push' with build
  • Thinking 'docker commit' builds images

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes