read-only root filesystem

Running a container so that nothing in its root filesystem can be changed, with writable space only where you add it.

In more detail

docker run --read-only stops an attacker from dropping tools or altering code in the container. Give the application writable paths explicitly with a tmpfs mount for /tmp or a volume for data.

Example

docker run --read-only --tmpfs /tmp taskapi:0.1

Related terms

Taught in

References

Certification courses