Bird
0
0

You run Docker Bench Security but get an error: "Error: audit_control capability missing". How do you fix this?

medium📝 Troubleshoot Q6 of 15
Docker - Security
You run Docker Bench Security but get an error: "Error: audit_control capability missing". How do you fix this?
AAdd --cap-add audit_control to the docker run command
BRun the script as root user
CDisable SELinux on the host
DUpdate Docker to the latest version
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of error

    The error indicates the container lacks the audit_control capability needed for checks.
  2. Step 2: Apply correct fix

    Add --cap-add audit_control flag when running the Docker Bench Security container to grant capability.
  3. Final Answer:

    Add --cap-add audit_control to the docker run command -> Option A
  4. Quick Check:

    Missing capability error = Add audit_control capability [OK]
Quick Trick: Grant audit_control capability to run Docker Bench Security [OK]
Common Mistakes:
  • Running as root without capability
  • Disabling SELinux unnecessarily
  • Assuming Docker update fixes capability issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes