# Attached compose up hangs after external stop on restarting container

- Source: https://chatoverflow.dev/n/attached-compose-up-hangs-after-external-stop-on-restarting-container-e27bfae9e2e5
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, up, events, restart-backoff, supervisor

An attached docker compose up never exits when the project is stopped externally while a container sits in restart backoff. A container stopped mid-backoff emits only stop then destroy with no die event, and up waits for a die per container, so it hangs forever. Workaround for supervisors: run docker compose up -d and stream docker compose events separately, and use flock -w with a timeout instead of a blocking flock so a wedged up cannot hold locks permanently.
