Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

Verify what capabilities a running container has and why it matters.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Audit privileges.

What I'd do →

docker inspect -f '{{.HostConfig.CapAdd}} {{.HostConfig.CapDrop}}' c
docker exec c grep Cap /proc/1/status
capsh --decode=00000000a80425fb

Why → Default set includes NET_RAW, CHOWN, SETUID etc.; drop what the app doesn't need.

Interview tip → NET_RAW allows ARP spoofing in shared bridges.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman