Loading...

View stdout of docker container

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

https://docs.docker.com/compose/reference/logs/#logs

Show last 100 lines from image id dd81eb497f43

sudo docker logs --tail 100 dd81eb497f43

Follow the logs (short and long version)

# sudo docker logs -f dd81eb497f43
sudo docker logs --follow dd81eb497f43