Friday, October 16, 2020

Docker Compose how to view log files

To view the log files , just can do one of the below 


docker-compose logs

docker-compose logs <<name of the service>>


Now to limit the output, can do something like this


docker-compose logs --no-color --tail=1000 <service-name> > logs.txt



References:

https://support.onegini.com/hc/en-us/articles/115000379192-How-to-show-docker-compose-container-logs


No comments:

Post a Comment