Need Assistance?

support@tutorialshub.in

Docker Security

Read-Only Filesystems

ADVERTISEMENT
Docker Free Lesson
5 min read
ADVERTISEMENT

Protecting the Container Filesystem

The --read-only option makes the container's root filesystem read-only. Applications that need temporary writes can receive a tmpfs mount or a specific writable volume.

This limits persistence and reduces the impact of an attacker who gains code execution.

ADVERTISEMENT