ansible-collections / community.docker

Community Docker Collection for Ansible: modules and plugins for working with Docker
https://galaxy.ansible.com/ui/repo/published/community/docker/
GNU General Public License v3.0
200 stars 113 forks source link

Is it possible to see errors from a container in community.docker.docker_compose_v2? #979

Open mihalt opened 2 hours ago

mihalt commented 2 hours ago

I would like not to ssh to my server with docker ps -a and after docker logs container_name each time when error occures in any container. And see them immidiately in ansible output. Is it possible?

felixfontein commented 2 hours ago

I'm not sure what exactly you need. A module which allows you to run docker logs <containername> for one / all containers for a service and/or project?