By default docker compose up
transfer stdout from containers to both stdout (console) and log file(s). With following line is service definition:
logging:
driver: none
docker will not produce logs but still print everything to STDOUT. Is there any way to stop printing for selected containers?
The following is not optimal solution:
docker compose up > /dev/null
this will hide info from all containers I want to hide only for selected,- go thru images and disable printing in those which are to verbose - yes this is an option but rather time consuming especially when you use 3rd party image,
- make bash script with lines
docker compose up verbose_container > /dev/null &
docker compose up silent_container &
this will make problem with dependency - probably it will be needed to add properly adjusted sleep between lines. In short seems far from being ideal
so
Is there any elegant way to stop printing to stdout for selected containers?