compose icon indicating copy to clipboard operation
compose copied to clipboard

docker-compose - dry-run - json output

Open ITJamie opened this issue 2 years ago • 2 comments

Description

It would be great if the docker-compose dry-run outputs had a flag to output a json blob at the end of their run with the information about proposed changes (if any).

This would allow for easier wrapping with tooling eg ansible/salt/python-on-whales

https://github.com/gabrieldemarmiesse/python-on-whales/issues/448

ITJamie avatar Aug 03 '23 13:08 ITJamie

It would be great if machine-readable output (JSON streams?) could be enabled for all commands.

felixfontein avatar Jan 02 '24 09:01 felixfontein

I created https://github.com/docker/compose/pull/11478 to implement a general JSON stream progress output. That should fix this.

felixfontein avatar Feb 08 '24 11:02 felixfontein