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

Suspected container escape: unknown process on the host tied to a container. How do you investigate?

AdvancedTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → Privileged container, mounted socket, vulnerable runtime (runc/kernel CVE), or compromised credentials; or a miner running inside the container's namespaces.

Diagnose →

ps -eo pid,ppid,user,cmd --forest
docker inspect -f '{{.Id}} {{.State.Pid}}' $(docker ps -q)
ls -l /proc/<pid>/ns /proc/<pid>/exe
nsenter -t <pid> -n ss -tnp
docker diff <c>; ausearch -k docker

Fix → Isolate the host (network quarantine), preserve evidence (docker export, memory/disk snapshot), then rebuild host and containers from clean images and rotate all secrets that were reachable.

Prevent → Patch runc/kernel, drop privileges, no socket mounts, runtime detection (Falco), and egress filtering.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd