Bird
0
0

Which command runs the Docker Bench Security script to check your Docker host against CIS benchmarks?

easy📝 Best Practice Q12 of 15
Docker - Security
Which command runs the Docker Bench Security script to check your Docker host against CIS benchmarks?
Adocker bench run security
Bdocker run --rm -it docker/docker-bench-security
Cdocker security scan bench
Ddocker run bench-security
Step-by-Step Solution
Solution:
  1. Step 1: Recall the official Docker Bench Security command

    The correct command is to run the official Docker image with docker run --rm -it docker/docker-bench-security.
  2. Step 2: Check other options for syntax errors or invalid commands

    Options B, C, and D are not valid Docker commands or do not match the official usage.
  3. Final Answer:

    docker run --rm -it docker/docker-bench-security -> Option B
  4. Quick Check:

    Official Docker Bench command = A [OK]
Quick Trick: Use official Docker image with docker run --rm -it [OK]
Common Mistakes:
  • Using incorrect or incomplete docker run syntax
  • Assuming 'docker bench' is a built-in command
  • Mixing up command order or flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes