Docker sq
Docker Fundamentals - Container Lifecycle

Reading Logs

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Reading Logs

Using Docker, applications print to the console as opposed to a .log file.

To view all logs for a running container: $docker container logs [container name]

If you want to continuously update the log, run the same command with the -f flag like so:

$docker container logs -f [container name]

You can alwayts stop following with ctrl+c.

 

I finished! On to the next chapter