mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
`docker compose cp` fanned out to every matched container through a bare unbounded errgroup, ignoring --parallel entirely -- the same class of gap already closed everywhere else in this package. Routed it through the existing forEachContainerConcurrent helper instead of a bespoke fan-out. inspectWithSlot and doLogContainer both release a semaphore slot early via an explicit call rather than a defer, so a panic between acquire and that release leaked the slot forever. Guarded both with a panic-safe release, scoped tightly in doLogContainer so a later panic in the same function can't trigger a double release. Signed-off-by: Guillaume Lours <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>