educative.io

Educative

Docker logs not showing browser request for nginx server

When doing docker logs <ID> after successfully opening the NGINX page on my browser, I don’t see the browser request in the logs. Neither when I do it with the VM, nor when I do it locally.

Hi @Marcos_Sobrinho ,

Thank you so much for reaching out to us. To check all the running docker containers please use the command docker ps and use the id of the container of the Nginx. Since every user gets a different id for the container they execute, so you have to use the id and put it in the command docker logs id_container. For understanding more about the such docker commands please check Do-It-Yourself: Post-Mortem Inspection lesson.

If there’s anything I can help you with, please feel free to contact me. Thanks.