How to use container runtime as CRI-O

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?

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

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

- 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

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

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

Adjust accordingly in case the crio socket path is different.