Low Orbit Flux Logo 2 F

Docker How To Tail Logs

You can tail the logs of a docker container like this:



docker logs zealous_shockley

If you want to continously follow the logs and watch any updates as they happen, use “-f” like this:



docker logs -f zealous_shockley

You can also specify the number of lines ( ex: last 100 ) like this:



docker logs -n 100 zealous_shockley

You can follow and specify the number of lines like this:



docker logs -f -n 100 zealous_shockley

You could follow but only for 30 seconds like this:



docker logs -f --until=30s