Docker and CI/CD · Middle · Question 28 of 75

Why is mounting /var/run/docker.sock into a container risky?

Explanation

Whoever controls the Docker API can start a privileged container that mounts the host filesystem. Only trusted tools should get the socket.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 28

Test yourself

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

Take this quiz