# How to use container runtime as CRI-O

**URL:** <https://forums.suse.com/t/how-to-use-container-runtime-as-cri-o/19857>\
**Category:** SUSE Rancher Prime\
**Created:** [March 19, 2021, 5:59am UTC](https://forums.suse.com/t/how-to-use-container-runtime-as-cri-o/19857 "2021-03-19T05:59:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11122](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/11122/32/7349_2.png) [@11122](https://forums.suse.com/u/11122)\
**Post date:** [March 19, 2021, 5:59am UTC](https://forums.suse.com/t/how-to-use-container-runtime-as-cri-o/19857/1 "2021-03-19T05:59:19Z")

</div>

Hi!  
I installed rancher version 2.5.7 and formed a kubernetes cluster with it.  
Is there a way to check the current container runtime?  
what is the default?

and because docker being deprecated in k8s, I’m trying to change the container runtime to CRI-O!  
how can I do it?

---

<div class="post-metadata">

**Author:** ![panteon](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@panteon](https://forums.suse.com/u/panteon)\
**Post date:** [July 28, 2026, 1:12pm UTC](https://forums.suse.com/t/how-to-use-container-runtime-as-cri-o/19857/2 "2026-07-28T13:12:59Z")

</div>

In case you’re here because you want to install sysbox on Rancher RKE2 and want to use CRI-O as a runtime in this context, you can follow this guide that installs sysbox-deploy-k8s-daemonset:

[https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-k8s.md](https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-k8s.md)

And make sure to add the following env variable in the sysbox-deploy-k8s container:

```json
- name: SYSBOX_USE_CRIO
  value: "True"

```

If you just want to install cri-o directly without sysbox, you can just do it following their documentation:

[https://github.com/cri-o/cri-o/blob/main/install.md#install-packaged-versions-of-cri-o](https://github.com/cri-o/cri-o/blob/main/install.md#install-packaged-versions-of-cri-o)

And make sure that `/etc/rancher/rke2/config.yaml` has the following content:

```auto
container-runtime-endpoint: /var/run/crio/crio.sock

```

Adjust accordingly in case the crio socket path is different.
