Bird
0
0

Which command is used to push a Docker image to a remote registry in a CI script?

easy📝 Conceptual Q2 of 15
Docker - in CI/CD
Which command is used to push a Docker image to a remote registry in a CI script?
Adocker push <image-name>:<tag>
Bdocker pull <image-name>:<tag>
Cdocker build <image-name>:<tag>
Ddocker run <image-name>:<tag>
Step-by-Step Solution
Solution:
  1. Step 1: Identify push command

    To upload images to a registry, the 'docker push' command is used.
  2. Step 2: Differentiate from other commands

    'docker pull' downloads images, 'docker build' creates images, 'docker run' starts containers.
  3. Final Answer:

    docker push <image-name>:<tag> -> Option A
  4. Quick Check:

    Push command = docker push [OK]
Quick Trick: Use 'docker push' to upload images [OK]
Common Mistakes:
  • Using 'docker pull' instead of push
  • Confusing build with push
  • Trying to run instead of push

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes