You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to stop a docker compose service in dry run (--check --diff) with the pull_policy: build results in the following warnings:
[WARNING]: Unknown resource type '' in line b'{"dry-run":true,"id":" ","text":"build service app"}'. Please report this at
https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Unknown resource type '==>' in line b'{"dry-run":true,"id":"==\\u003e ==\\u003e","text":"naming to display-
app"}'. Please report this at https://github.com/ansible-
collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Docker compose: unknown : build service app
[WARNING]: Docker compose: unknown ==>: ==> writing image dryRun-7d1043473d55bfa90e8530d35801d4e381bc69f0
[WARNING]: Docker compose: unknown ==>: naming to display-app
The warnings also appear on state: present steps with no pull_policy in the compose file but with build: always in the step parameters (still in dry run mode).
The way docker-compose's code abuses the progress event structure always wants to make me cry...
stderr output:
{"dry-run":true,"id":" ","text":"build service app"}
{"dry-run":true,"id":"==\u003e","text":"==\u003e writing image dryRun-7d1043473d55bfa90e8530d35801d4e381bc69f0"}
{"dry-run":true,"id":"==\u003e ==\u003e","text":"naming to display-app"}
Resulting warnings:
Unknown resource type '' in line b'{"dry-run":true,"id":" ","text":"build service app"}'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
Unknown resource type '==>' in line b'{"dry-run":true,"id":"==\\u003e ==\\u003e","text":"naming to display-app"}'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
Docker compose: unknown : build service app
Docker compose: unknown ==>: ==> writing image dryRun-7d1043473d55bfa90e8530d35801d4e381bc69f0
Docker compose: unknown ==>: naming to display-app
SUMMARY
Trying to stop a docker compose service in dry run (
--check --diff
) with thepull_policy: build
results in the following warnings:ISSUE TYPE
COMPONENT NAME
community.docker.docker_compose_v2
ANSIBLE VERSION
COLLECTION VERSION
I don't know how to use the latest release/devel version.
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Write the following
docker-compose.yaml
in a directory on the target host.Then run the following task in a playbook in dry run mode (
--check --diff
)EXPECTED RESULTS
I'd expect no warning
ACTUAL RESULTS
Logs
The text was updated successfully, but these errors were encountered: