`OCI runtime create failed: ... mount: /proc: permission denied` or similar from nested containers.
AdvancedTroubleshootingContainers that exit, crash or misbehave
Answer
Likely causes → Running containers inside a restricted container/LXC/CI sandbox without needed capabilities or with masked /proc.
Diagnose → cat /proc/self/status | grep Cap; check the outer environment's security profile.
Fix → Use a runtime that supports nesting (Sysbox), enable nesting in LXC, or use rootless with proper setup.
Prevent → Prefer daemonless/remote builds over nested runtimes.
More on Containers that exit, crash or misbehave
Container exits immediately with code 0 right after `docker run -d`.Beginner`Exited (137)` with no OOM flag.Intermediate`Exited (139)` segmentation fault.Advanced`Exited (126)` / `Exited (127)`.Beginner`exec /entrypoint.sh: exec format error`Intermediate`docker run` says `WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)` and the app is very slow.Beginner