Kubernetes 1.24, released on May 3, 2022, removes dockershim, the built-in adapter that connected Kubernetes to Docker Engine. Enterprises upgrading nodes that depend on that adapter need a replacement connection or a different container runtime. They do not, simply because of this removal, need to abandon images built with Docker. The Kubernetes project says those images remain usable with implementations of its Container Runtime Interface, or CRI. [S1][S2]

The choice sits at the node rather than in the image-building tool. Docker Engine does not implement CRI, which is why Kubernetes carried the adapter in the first place. The release announcement names containerd and CRI-O as runtime alternatives; businesses retaining Docker Engine can use the separate cri-dockerd adapter. The node owner needs to settle that connection before upgrading. [S1][S2]

The project’s removal FAQ says Docker can still be used on a developer’s own computer regardless of the runtime chosen for the cluster. But its assurance about Docker-built images is narrower than a promise that the surrounding operation will work unchanged. The same guidance calls out node-provisioning scripts that invoke Docker, plugins that use its command-line tool or control socket, and logging and resource configurations as migration concerns. [S2]

A Docker dependency can also sit outside the application. The FAQ names monitoring and security agents running outside Kubernetes, and says customized dockerd settings need to be adapted for the replacement runtime where possible. It points to Detector for Docker Socket, a kubectl plugin that finds active workloads mounting docker.sock as a volume. That is a useful starting point, not a complete inventory: its stated scope does not establish whether an external maintenance script or monitoring agent expects Docker to be present. [S2]

Changing runtimes also requires attention to networking versions. The 1.24 announcement warns of pod network setup and teardown problems in containerd 1.6.0–1.6.3 when CNI network plugins have not been upgraded or the CNI configuration version is missing from configuration files. It reports the containerd team’s statement that the issues are resolved in 1.6.4. The practical check is the runtime-and-networking combination, rather than whether an inventory merely lists containerd. [S1]

A useful division of work would leave application teams checking their images while the node team checks the replacement runtime and Docker-dependent support tools. That is a migration approach, not a reported customer result. Organizations using a vendor-supported Kubernetes distribution also need that vendor’s upgrade plan, as the project’s FAQ advises; the upstream release announcement does not establish when their particular distribution or managed service will make 1.24 available. [S1][S2]

Source documents

  1. Kubernetes 1.24: Stargazerhttps://raw.githubusercontent.com/kubernetes/website/c901134cde7901d8f2ab07efb9308e61246fe357/content/en/blog/_posts/2022-05-03-kubernetes-release-1.24.md
  2. Updated: Dockershim Removal FAQhttps://raw.githubusercontent.com/kubernetes/website/c901134cde7901d8f2ab07efb9308e61246fe357/content/en/blog/_posts/2022-02-17-updated-dockershim-faq.md