Kubernetes 101 : The "crictl" tool - Going down to the container level -

"Crictl" is a tool that we could use in kubernetes to execute commands in containers, display images, read container's logs, ...

We could display the images present on our system as below:

To debug the "kube-proxy" container for example, we look for its container id:


The "crictl ps" command only shows the running containers, to see all the containers, running and stopped, we use the "-a" flag.

Then we could check the container's logs using the below command:

We could also execute a command inside a container using the below command:

We could also use the below command, that gives us extra information like the "pod id":

To get performance data about containers, we could use the below command for the container "45efba3c8bde4":


Leave as a comment: