Skip to main content

Docker Logs

First, get a list of all the running containers:

docker ps

List running containers and ones that have exited:

docker ps -a

To check the log for a container:

docker logs <container-name-here>

To stream the output of a log as it updates:

docker logs -f <container-name-here>

The output of some logs can be quite long. It might be helpful to search for exceptions:

docker logs <container-name-here> | grep Exception