compose/pkg/e2e/fixtures
ibrahim yapar 56ab28aef3 compose: recreate container when mounted image digest changes
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>
2026-01-26 15:55:44 +01:00
..
attach-restart
bridge fix the helm bridge e2e tests after the latest update of the templates 2025-07-16 16:04:52 +02:00
build-dependencies build dependent service images when required 2025-06-02 12:28:43 +02:00
build-infinite
build-test bake only interpolates ${*} 2025-10-13 10:40:19 +02:00
cascade chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
commit feat: add commit command 2024-11-27 07:39:46 +01:00
compose-pull fix regression running pull --ignore-pull-failures 2022-12-19 11:56:03 +01:00
config fix compose config --format json 2024-03-18 08:09:54 +01:00
configs Fix configs are mounted under /<id> 2023-11-29 16:53:22 +01:00
container_name check container_name is not in use by another service we will create 2024-04-16 17:26:50 +02:00
cp-test
dependencies test: Set stop_signal to SIGTERM 2025-09-19 10:31:20 +02:00
dotenv add support for raw env_file format 2024-10-08 18:33:54 +02:00
env-secret Compose can't create a tar with adequate uid:gid ownership 2025-10-20 09:51:58 +02:00
env_file run only loads required service env_file and ignores others 2025-03-18 09:39:15 +01:00
environment empty env variable with no value must be unset in container 2024-07-10 14:23:34 +02:00
exec prefer application container vs one-off running exec without index 2025-09-07 14:41:34 +02:00
export feat: add export command 2024-10-02 21:15:59 +02:00
external exclude unnecessary resources after services have been selected 2024-07-09 15:12:27 +02:00
hooks make sure the post_start hooks fails 2025-06-30 12:37:58 +02:00
image-volume-recreate compose: recreate container when mounted image digest changes 2026-01-26 15:55:44 +01:00
init-container
ipam test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
ipc-test
links e2e: reproduce bug with links 2022-05-31 16:32:29 -05:00
logging-driver stop dependent containers before recreating diverged service 2024-09-16 10:14:54 +02:00
logs-test fix deadlock collecting large logs 2024-02-13 20:15:19 +01:00
model introduce support for models 2025-06-30 19:22:35 +02:00
nested allow a local .env file to override compose.yaml sibling .env 2024-05-21 16:01:29 +02:00
network-alias
network-interface-name introduce networks.interface_name 2025-04-24 12:06:17 +02:00
network-links Add links to container create request. 2022-06-02 02:51:25 +02:00
network-recreate end-to-end test 2025-06-02 18:57:07 +02:00
network-test fix support for service.mac_address 2024-12-10 15:59:26 +01:00
no-deps resolve service reference into container based on observed state 2023-09-14 15:29:50 +02:00
orphans restore setEnvWithDotEnv 2024-07-11 10:25:04 +02:00
pause test: tweak pause test to try and prevent failures in Windows CI 2023-02-27 14:20:20 -05:00
port-range run ContainerStart sequentially 2025-05-20 09:47:58 +02:00
profiles Add profile e2e test case to document in compose 2024-10-30 16:00:41 +01:00
project-volume-bind-test use '-' as separator by default for image name 2022-07-29 18:55:22 +02:00
providers fix provider concurrent environment map accesses 2025-06-30 19:07:10 +02:00
ps-test e2e: add test for ps 2022-06-08 14:05:20 -05:00
publish fix OCI compose override support 2025-10-23 12:04:37 +02:00
recreate-volumes e2e test to prevent future regression 2024-12-16 15:46:47 +01:00
resources e2e test for --all-resources 2024-04-09 15:30:42 +02:00
restart-test test: Set stop_signal to SIGTERM 2025-09-19 10:31:20 +02:00
run-test fixes 2025-11-06 08:02:59 +01:00
scale remove obsolete containers first on scale down 2024-11-12 09:47:36 +01:00
sentences test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
simple-build-test convert: do not escape $ into $$ when using the --no-interpolate option (#9703) 2022-09-08 16:25:23 -04:00
simple-composefile image can be set to a local ID, that isn't a valid docker ref 2025-01-09 09:55:30 +01:00
start-fail test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
start-stop Add E2E tests for starting/stopping single services 2022-08-30 12:55:51 +02:00
start_interval e2e test for start_interval 2025-04-30 11:08:09 +02:00
stdout-stderr test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
stop keep containers attached on stop to capture termination logs 2025-07-15 11:26:44 +02:00
switch-volumes e2e test for recreate volume 2024-12-13 09:52:22 +01:00
ups-deps-stop up: do not stop dependency containers (#9701) 2022-08-02 15:25:59 -04:00
volume-test
volumes introduce volume.type=image 2025-04-09 16:59:42 +02:00
wait Add docker compose wait 2023-06-30 16:07:03 +02:00
watch add deprecation warning for x-initialSync + e2e test 2025-09-18 11:06:44 +02:00
wrong-composefile