From 26cf4979fa662f70d57036d8e68e87d3a4e28a37 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 10 Dec 2025 08:44:59 +0100 Subject: [PATCH] local-up-cluster.sh: support more recent containerd like 2.2 The kubekins image got updated from containerd 1.7 to 2.2, which broke local-up-cluster.sh in the CI because more recent containerd uses single quotation marks around strings instead of double quotation marks as before. The search/replaced with sed no longer matched, causing containerd to fail mounting overlayfs on the default /var/lib/containerd. We have to use the emptyDir host mount under /docker-graph. The fix is to relax the search term slightly so that it accepts both kinds of quotation marks. --- hack/local-up-cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index fe6616f69ed..94be87d67d0 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -1388,8 +1388,8 @@ if [[ "${KUBETEST_IN_DOCKER:-}" == "true" ]]; then # configure and start containerd echo "configuring containerd" containerd config default > /etc/containerd/config.toml - sed -ie 's|root = "/var/lib/containerd"|root = "/docker-graph/containerd/daemon"|' /etc/containerd/config.toml - sed -ie 's|state = "/run/containerd"|state = "/var/run/docker/containerd/daemon"|' /etc/containerd/config.toml + sed -ie 's|root = ./var/lib/containerd.|root = "/docker-graph/containerd/daemon"|' /etc/containerd/config.toml + sed -ie 's|state = ./run/containerd.|state = "/var/run/docker/containerd/daemon"|' /etc/containerd/config.toml sed -ie 's|enable_cdi = false|enable_cdi = true|' /etc/containerd/config.toml echo "starting containerd"