Docker - How to Check Container Overview and Logs


Here I describe how to run containers and how to consult the logs.

I run the following on the CLI of my Ubuntu VM.

View which containers are running and their status:

sudo docker ps -a

Check the logs of a container, for example if it won’t start:

sudo docker logs <container name>

Adjust the following:

sudo docker logs <container name>
Replace <container name> with the name of the container

It is also possible to use these docker commands without sudo.


Read other notes

Comments

    No comments found for this note.

    Join the discussion for this note on this ticket. Comments appear on this page instantly.

    Tags


    Notes mentioning this note

    • Docker - QuestDB Container Setup
      QuestDB is a high-performance, open-source SQL database. QuestDB’s stack is engineered from scratch, zero-GC Java and dependency-free. It includes endpoints...

    Notes Graph