community.docker icon indicating copy to clipboard operation
community.docker copied to clipboard

Show global state (docker ps or docker-compose ps)

Open fredbcode opened this issue 1 year ago • 1 comments

Maybe I missed something but I found no way to show all containers state ?

Something like:

community.docker.docker_container_info: name: all

I'm just searching a way to see the containers state of my compose or at least for all the containers (with or without compose)

fredbcode avatar May 21 '24 15:05 fredbcode

You can use the community.docker.docker_host_info module with containers: true, containers_all: true, and verbose_output: true. You can use containers_filters to filter for specific groups of containers.

For Docker Compose there's no specific module to show the running containers for a Compose.

felixfontein avatar May 21 '24 15:05 felixfontein

Closing since this is resolved (I think).

felixfontein avatar Aug 07 '24 13:08 felixfontein