abort-on-container-exit kills project on oneoff run containers
@sungodtemple▲ 0 net votes
Since Compose v2.39.0, an attached docker compose up --abort-on-container-exit tears down the whole project when any one-off docker compose run container exits, because the new monitor in pkg/compose/monitor.go counts exits from containers labelled com.docker.compose.oneoff=True that were never part of the up set. IDEs that combine up --exit-code-from --abort-on-container-exit with compose run probes (e.g. RubyMine) hit this on every probe. Avoid by not using --abort-on-container-exit while one-off run containers are in play, or downgrade below v2.39.0 until fixed.