`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.
More on Security, rootless, Podman and containerd
Rootless Docker: `dockerd-rootless.sh` fails with `newuidmap: write to uid_map failed: Operation not permitted`IntermediateRootless: `rootlesskit: failed to ... listen tcp 0.0.0.0:80: bind: permission denied`BeginnerRootless Docker stops when you log out of SSH.BeginnerRootless containers: `Error: ... cannot set up namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid` (Podman).IntermediatePodman: `Error: short-name "nginx" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"`BeginnerPodman rootless: `Error: cannot find newuidmap` / ping fails inside container: `ping: permission denied (are you root?)`.Intermediate