Interview Prep/Docker/Security, rootless, Podman and containerd

`permission denied` when container tries to write with `--read-only`: `Read-only file system`.

IntermediateTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → App writes to a path not mounted writable (/tmp, /var/run, cache dirs).

Diagnose → docker run --read-only ... then strace -f -e trace=openat,mkdir or app logs naming the path.

Fix → Add --tmpfs /tmp --tmpfs /run or volumes for the specific paths.

Prevent → Test with read-only root in CI.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd