Kubernetes Docker - Updating Container Runtime

Created by Jamie Martin, Modified on Tue, 10 Jan 2023 at 05:33 PM by Jamie Martin

One of the most powerful features of Kubernetes is its modularity. This makes it easy to change your container runtime. The process to change the default container runtime on a node is straightforward:

  1. Install your new container runtime.
  2. Update your kubelet configuration with the extra arguments --container-runtime=remote and --container-runtime-endpoint=unix:///run/containerd/containerd.sock (or unix:///var/run/crio/crio.sock if you’re using CRI-O).
  3. Drain the node to reschedule any Kubernetes workloads to other nodes.
  4. Restart the kubelet service.
  5. Uncordon the node to allow Kubernetes to schedule workloads on the updated node.

For specific steps, see the cri-o documentation or the containerd documentation.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article