skip to Main Content

I have a docker container running with detach mode (-d) flag. This container running application which is updating some output/logs in the terminal.

I want to see those output from the container in real-time in the terminal.

Is there any way possible to see the docker logs in terminal at real-time update from the application?

Thanks.

2

Answers


  1. You need to tell Docker to follow the log output:

    $ docker logs -f CONTAINER_NAME
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search