Compatibility Between Kubernetes and Docker
Kubernetes v1.20 and later do not support the Docker container engine. However, according to the compatibility issue clarification on the official Kubernetes website:
- Versions earlier than Kubernetes v1.20 are fully compatible with Docker.
- Kubernetes v1.20 to v1.22 still support Docker, but alarms are generated when kubelet is being started.
- Kubernetes v1.23 and later do not support the Docker engine but are still compatible with the original Docker images. In addition, the images generated by running the docker build command can be used properly in Kubernetes.
- Kubernetes v1.23 and later can use the containerd or CRI-O container runtime.
After Kubernetes is incompatible with Docker, the possible countermeasures are as follows: