ContainerName is no longer in image record.

This commit is contained in:
Felix Fontein 2025-06-07 22:07:31 +02:00
parent e5c3e01838
commit f9fa8a6901
5 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,4 @@
bugfixes:
- "docker_compose_v2 - handle a (potentially unintentional) breaking change in Docker Compose 2.37.0
(https://github.com/ansible-collections/community.docker/issues/1082, https://github.com/ansible-collections/community.docker/pull/1083)."
- "docker_compose_v2 - handle a (potentially unintentional) breaking change in Docker Compose 2.37.0.
Note that ``ContainerName`` is no longer part of the return value
(https://github.com/ansible-collections/community.docker/issues/1082, https://github.com/ansible-collections/community.docker/pull/1083)."

View File

@ -111,7 +111,9 @@
- present_1.containers | length == 1
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
- present_1.images | length == 1
- present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- >-
docker_compose_version is version('2.37.0', '==') or
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == iname
- present_1.images[0].Tag == "latest"
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0

View File

@ -62,7 +62,9 @@
- present_1.containers[0].State == 'exited'
- present_1.containers[0].ExitCode == 0
- present_1.images | length == 1
- present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- >-
docker_compose_version is version('2.37.0', '==') or
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0

View File

@ -83,7 +83,9 @@
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
- present_1.containers[0].Image == docker_test_image_alpine
- present_1.images | length == 1
- present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- >-
docker_compose_version is version('2.37.0', '==') or
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0

View File

@ -100,7 +100,9 @@
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
- present_1.containers[0].Image == docker_test_image_alpine
- present_1.images | length == 1
- present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- >-
docker_compose_version is version('2.37.0', '==') or
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0