Files
compose/cmd
Guillaume Lours 4b7f6149eb fix(scale, run): resolve DOCKER_DEFAULT_PLATFORM like up does
scale and run were the only container-creating commands that never
called applyPlatforms, yet both go through the regular create path and
its config-hash comparison (run for the dependencies it starts). With
DOCKER_DEFAULT_PLATFORM set, they hashed an empty service Platform where
up had hashed the resolved one, so every invocation recreated the
affected containers. run's project preparation is extracted to a helper
to keep runCommand under the complexity threshold.

No unit test: neither command has a test harness and the fix is the one
missing call, aligned on create/watch; the config-hash equality is
covered by the reconciler tests.

Signed-off-by: Guillaume Lours <[email protected]>
2026-08-13 12:03:29 +02:00
..
2026-02-12 15:31:35 +01:00