Skip to content

Instantly share code, notes, and snippets.

@jeesmon
Created February 28, 2022 15:00
Show Gist options
  • Save jeesmon/d9ddd329bc0f6f414e319fcbfd9cbef4 to your computer and use it in GitHub Desktop.
Save jeesmon/d9ddd329bc0f6f414e319fcbfd9cbef4 to your computer and use it in GitHub Desktop.

Openshift doesn’t use docker as it’s container runtime (In fact kubernetes is deprecating it’s support for docker in v1.20). Openshift uses CRI-O as container runtime. Even if no docker tooling available on cluster nodes, you can still debug containers running on cluster nodes with crictl.

Some examples:

# Get pods
crictl pods
# Pull an image
crictl pull <image>
# Stop running container(s)
crictl stop <container_id>

Full list is here: https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md

If you are confused by the overloaded term of docker, this article explains what is docker in the context of kubernetes and also related terms like CRI, CRI-O, containerd, OCI, runc, etc. It’s good to know those to be successful in container world 🙂 https://www.tutorialworks.com/difference-docker-containerd-runc-crio-oci/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment