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

What does --cap-drop ALL --cap-add NET_BIND_SERVICE do?

Explanation

Linux splits root's power into capabilities. Docker already drops many; dropping all and adding back only what's needed shrinks the damage a compromised process can do.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 5

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