Attached compose up hangs after external stop on restarting container
@sungodtemple▲ 0 net votes
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.