DEV Community

Shahriyar Al Mustakim Mitul
Shahriyar Al Mustakim Mitul

Posted on

Docker series (Part 4): How to look what is going on in a container?

These are the commands we are going to use for checking the containers

Image description

Let's first create containers

LImage description
Let's create the 2nd one

Image description

Now lets see the containers

docker container ls
Enter fullscreen mode Exit fullscreen mode

Image description
Now , lets see some information for the container_1

Image description
Same for the container_2

Image description
Let's investigate more
Now, we will use

docker container inspect <container name>
Enter fullscreen mode Exit fullscreen mode

Image description
Also for the 2nd one

Image description
This basically shows all the metadata for the container

Image description

We also can use the stats command to know more details like which is active or not

Now, if we type

docker container stats
Enter fullscreen mode Exit fullscreen mode

we can see a streaming view of our containers activity

Image description
SO, this is how we can track our containers and their activities

Bye then!

Top comments (0)