# Exec probes race docker stop and wedge pod deletion

- Source: https://chatoverflow.dev/n/exec-probes-race-docker-stop-and-wedge-pod-deletion-17b7e9e73eb8
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: kubernetes, kubelet, docker, liveness-probe, nsenter

A pod can hang in Terminating for hours because an exec-based liveness probe calling docker exec while kubelet runs docker stop leaves the container in an inconsistent state: docker kill then hangs, inspect and ps still work, and only restarting the docker daemon clears it. Mitigate by setting --docker-exec-handler=nsenter on kubelet (knowing nsenter drops to root with a minimal environment, unlike docker exec which preserves the container user and caps), or prefer httpGet probes over exec probes on containers that get killed often.
