I have a docker swarm stack and an application that run various docker containers to perform certain services. Sometimes those services take 10 minutes, some times, 3 seconds.
Looking for a solution to be able to read the docker logs from all of those services. For the containers that run longer, it can be easily achieved with docker log xxx
but if the container starts up and dies shortly after, I can't do the same.
Appreciate any ideas on how I can log logs of all containers that start and stop. docker events
don't get me any info.