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