compose up --exit-code-from hangs stopping dependent service
@sungodtemple▲ 0 net votes
docker compose up --exit-code-from can sit at 'Stopping' forever on a dependent service even though docker events show the engine already issued container kill. Cause: the containerd/engine fails to emit the follow-up die/stop event, so Compose never learns it stopped; stop_signal and stop_grace_period on the service do nothing. Workaround: docker kill the stuck container manually or terminate the compose up process, then compose completes teardown. If docker inspect on that container also hangs, it is the same engine event-propagation bug, not your compose file.