Commands Cheat Sheet

Try DrDroid: AI Agent for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

Connection

crictl info
Get CRI-O server information

crictl version
Display CRI-O version information

crictl stats
Display running container statistics

Container Management

crictl ps
List running containers

crictl ps -a
List all containers

crictl start <container-id>
Start a container

crictl stop <container-id>
Stop a container

crictl rm <container-id>
Remove a container

crictl inspect <container-id>
Get detailed container info

crictl logs <container-id>
Fetch logs of a container

crictl exec -it <container-id> <command>
Execute a command in a running container

Image Management

crictl images
List images

crictl pull <image>
Pull an image

crictl rmi <image-id>
Remove an image

crictl inspecti <image-id>
Get detailed image info

Pod Management

crictl pods
List pods

crictl runp <pod-config.json>
Create a pod

crictl stopp <pod-id>
Stop a pod

crictl rmp <pod-id>
Remove a pod

crictl inspectp <pod-id>
Get detailed pod info

Network and Storage

crictl port <container-id>
List port mappings

crictl mounts <container-id>
List mounts for a container

CRI-O Service Management

systemctl status crio
Check CRI-O service status

systemctl restart crio
Restart CRI-O service

systemctl stop crio
Stop CRI-O service

systemctl start crio
Start CRI-O service

Configuration

cat /etc/crio/crio.conf
View CRI-O configuration

cat /etc/crictl.yaml
View crictl configuration