mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-12 04:31:28 +00:00
ContainerName is no longer in image record.
This commit is contained in:
parent
e5c3e01838
commit
f9fa8a6901
@ -1,3 +1,4 @@
|
|||||||
bugfixes:
|
bugfixes:
|
||||||
- "docker_compose_v2 - handle a (potentially unintentional) breaking change in Docker Compose 2.37.0
|
- "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)."
|
(https://github.com/ansible-collections/community.docker/issues/1082, https://github.com/ansible-collections/community.docker/pull/1083)."
|
||||||
@ -111,7 +111,9 @@
|
|||||||
- present_1.containers | length == 1
|
- present_1.containers | length == 1
|
||||||
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
||||||
- present_1.images | length == 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].Repository == iname
|
||||||
- present_1.images[0].Tag == "latest"
|
- present_1.images[0].Tag == "latest"
|
||||||
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
||||||
|
|||||||
@ -62,7 +62,9 @@
|
|||||||
- present_1.containers[0].State == 'exited'
|
- present_1.containers[0].State == 'exited'
|
||||||
- present_1.containers[0].ExitCode == 0
|
- present_1.containers[0].ExitCode == 0
|
||||||
- present_1.images | length == 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 == (docker_test_image_alpine | split(':') | first)
|
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
|
||||||
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
||||||
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
||||||
|
|||||||
@ -83,7 +83,9 @@
|
|||||||
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
||||||
- present_1.containers[0].Image == docker_test_image_alpine
|
- present_1.containers[0].Image == docker_test_image_alpine
|
||||||
- present_1.images | length == 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 == (docker_test_image_alpine | split(':') | first)
|
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
|
||||||
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
||||||
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
||||||
|
|||||||
@ -100,7 +100,9 @@
|
|||||||
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
|
||||||
- present_1.containers[0].Image == docker_test_image_alpine
|
- present_1.containers[0].Image == docker_test_image_alpine
|
||||||
- present_1.images | length == 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 == (docker_test_image_alpine | split(':') | first)
|
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
|
||||||
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
|
||||||
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user