How do you view logs for a container?

To view logs for running containers, we can use LOG command.

  > docker logs --follow

The --follow flag will continue streaming the new output from the container's STDOUT and STDERR onto the terminal.

To view logs for running containers, we can use LOG command.

  > docker logs --follow

The –follow flag will continue streaming the new output from the container’s STDOUT and STDERR onto the terminal.

Default image
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply