Docker and CI/CD · Senior · Question 7 of 75

Why is --privileged dangerous?

Explanation

All capabilities, all devices, no seccomp or AppArmor limits: escaping to the host becomes trivial. Grant specific capabilities or devices instead.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 7

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz