简体   繁体   中英

Filter docker-compose output

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?

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>
docker-compose up <service>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM