Compose: Show only new logs

Created on 1 Jun 2016  路  2Comments  路  Source: docker/compose

It would be very nice to have an option in docker-compose logs that only displays new logs, since the last time you showed them up, since the last time images were restarted, or just with a --lines option that displays from the last X lines, just like tail.

Most helpful comment

See https://github.com/docker/compose/issues/2227
As of 1.7.0 you can use docker-compose logs --tail=X to start with the last X lines

All 2 comments

See https://github.com/docker/compose/issues/2227
As of 1.7.0 you can use docker-compose logs --tail=X to start with the last X lines

Yes, I'm using that since it landed.

Was this page helpful?
0 / 5 - 0 ratings