Merge pull request #158 from andrewhsu/ac
[18.09] use systemctl is-active to check for containerd Upstream-commit: 7e5cc1a95e11a48148f1972d625322ae1399c0bc Component: packaging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user