What Can I Do If Docker Fails to Be Used in Kubernetes 1.24 or Later?

Symptom

In versions earlier than 1.24, Kubernetes directly integrates a component of Docker Engine, which is called Dockershim. In 1.24 and later versions, Dockershim has been removed from Kubernetes. If you want to use Docker as the container engine of Kubernetes, you need to install cri-dockerd.

Solution

  • Migrate the initialized Kubernetes cluster from Dockershim by referring to the Kubernetes official example.
  • If the Kubernetes cluster is not initialized, install the software and initialize the Kubernetes cluster by following the instructions provided in the cri-dockerd community.