Bird
0
0

Which Docker command helps scan images for security vulnerabilities?

easy📝 Syntax Q12 of 15
Docker - Security
Which Docker command helps scan images for security vulnerabilities?
Adocker scan <image_name>
Bdocker build <image_name>
Cdocker run <image_name>
Ddocker push <image_name>
Step-by-Step Solution
Solution:
  1. Step 1: Identify scanning command

    Docker provides docker scan to check images for vulnerabilities.
  2. Step 2: Eliminate other commands

    docker build creates images, docker run runs containers, docker push uploads images; none scan security.
  3. Final Answer:

    docker scan <image_name> -> Option A
  4. Quick Check:

    Scan command = docker scan [OK]
Quick Trick: Scan images with 'docker scan' command [OK]
Common Mistakes:
  • Using build or run commands to scan images
  • Confusing push with scanning
  • Not knowing 'docker scan' exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes