Interview Prep/Docker/Containers that exit, crash or misbehave

`docker exec` returns `OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH`

BeginnerTroubleshootingContainers that exit, crash or misbehave
Answer

Likely causes → Alpine/distroless/slim image without bash.

Diagnose → docker exec c sh -c 'cat /etc/os-release'

Fix → Use sh, or docker debug c, or attach a debug container sharing namespaces.

Prevent → Do not depend on bash in minimal images.

All Docker questions Roadmap: Docker & containers

More on Containers that exit, crash or misbehave