This environment is set up for learning how to work with CRI-O — a lightweight container runtime specifically designed for Kubernetes, implementing the Container Runtime Interface (CRI).
cri-o
: The core CRI-compatible container runtime daemon.runc
/crun
: Low-level OCI runtime implementations.conmon
: Container monitoring tool that handles container lifecycle.crictl
: The primary CLI for interacting with CRI-O and other CRI-compatible runtimes.crictl pull hello-world:latest
crictl images
# Create a pod first (CRI-O works with pods)
crictl runp pod-config.yaml
# Run container in the pod
crictl create <pod-id> container-config.yaml pod-config.yaml
crictl start <container-id>
# List pods
crictl pods
# Create a pod
crictl runp pod-config.yaml
# Stop and remove a pod
crictl stopp <pod-id>
crictl rmp <pod-id>
crictl --help
Happy learning! 🚀