Tuesday, July 26, 2022

[SOLVED] Filter docker-compose output

Issue

I have several containers that give many hundreds of lines of output when I do a docker-compose up and load all my services. Is there a way to filter that output easily or better yet, not have those services output to standard out, when doing docker-compose up?


Solution

Use detached mode when you start your docker compose

docker-compose up -d

If you want to see the logs of your containers, you can do:

docker-compose logs <name of your service that was defined in docker-compose file>


Answered By - Hy L
Answer Checked By - Pedro (WPSolving Volunteer)