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

SELinux: `avc: denied { read } for ... scontext=system_u:system_r:container_t:s0:c1,c2 tcontext=...:user_home_t`

AdvancedTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → Mounted a host directory without a container label.

Diagnose → sudo ausearch -m avc -ts recent | audit2why.

Fix → :z/:Z on the volume, or label container_file_t; avoid --security-opt label=disable outside tests.

Prevent → Keep data under labeled dirs such as /srv.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd