Bird
0
0

Which of the following is the correct syntax to scan a Docker image named myapp:latest?

easy📝 Command Output Q12 of 15
Docker - Security
Which of the following is the correct syntax to scan a Docker image named myapp:latest?
Adocker scan -image myapp:latest
Bdocker scan myapp:latest
Cdocker scan --img myapp:latest
Ddocker scan image=myapp:latest
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct command syntax

    The correct syntax is docker scan <image-name> without extra flags.
  2. Step 2: Verify options

    Options B, C, and D use incorrect flags or formats not supported by docker scan.
  3. Final Answer:

    docker scan myapp:latest -> Option B
  4. Quick Check:

    docker scan + image name = correct syntax [OK]
Quick Trick: Use simple: docker scan image_name [OK]
Common Mistakes:
  • Adding unsupported flags like -image or --img
  • Using equal signs in command
  • Misplacing image name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes