Running With a Read-Only Filesystem
You run a container with --read-only and it fails writing to /tmp. What is the usual fix that keeps the hardening?
--read-only
/tmp
Choose one answer
Remove --read-only; writing to /tmp is always needed.
Add --cap-add SYS_ADMIN to allow writes.
--cap-add SYS_ADMIN
Run the container as root so it may write anywhere in the filesystem.
Mount a tmpfs at /tmp, and volumes for data.
tmpfs