mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Until now, mustRecreate logic only checked for divergence in TypeVolume mounts but ignored TypeImage mounts. This inconsistency caused containers to erroneously retain stale images even after the source image was rebuilt. This commit updates ensureImagesExists to resolve image volume sources to their digests using the official reference package. This enables ServiceHash (config hash) to naturally detect underlying image digest changes, triggering recreation via the standard convergence logic. An E2E test case is added to verify this behavior. Fixes #13547 Signed-off-by: ibrahim yapar <74625807+ibrahimypr@users.noreply.github.com>