diff --git a/components/packaging/containerd.mk b/components/packaging/containerd.mk index 12bad420f7..2e67b7ba98 100644 --- a/components/packaging/containerd.mk +++ b/components/packaging/containerd.mk @@ -4,7 +4,7 @@ CONTAINERD_PROXY_COMMIT=82ae3d13e91d062dd4853379fe018638023c8da2 CONTAINERD_SHIM_PROCESS_IMAGE=docker.io/docker/containerd-shim-process:ff98a47 # If containerd is running use that socket instead -ifeq ($(shell systemctl status containerd 2>/dev/null >/dev/null && echo -n "yes"), "yes") +ifeq ("$(shell systemctl is-active containerd)", "active") CONTAINERD_SOCK:=/var/run/containerd/containerd.sock else CONTAINERD_SOCK:=/var/run/docker/containerd/docker-containerd.sock