# Docker logs 1. To see docker logs first you have know the container id: ```bash= docker container ls ``` You will see something like this: The selected string is the container id ![](https://i.imgur.com/BsuhN0Y.png) 2. Then just execute: ```bash= docker logs <CONTAINER ID> --follow ``` - The **--follow** flag used to show the logs in real-time.