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

What does running with --read-only achieve?

Explanation

An attacker can't drop binaries or change code. Mount a tmpfs for /tmp and volumes for data that must be written.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 24

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