Home > Enterprise >  How to check docker container logs real-time update in terminal?
How to check docker container logs real-time update in terminal?

Time:01-04

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?

CodePudding user response:

You need to tell Docker to follow the log output:

$ docker logs -f CONTAINER_NAME

CodePudding user response:

https://docs.docker.com/engine/reference/commandline/logs/

$ docker logs [OPTIONS] CONTAINER
  • Related