From f3c82258ac2cee7c544416c5d86baf209d222462 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 3 Aug 2026 15:46:12 +0000 Subject: [PATCH] fix: start containerd before dockerd --- setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index c223ad7..811c6d1 100644 --- a/setup.sh +++ b/setup.sh @@ -66,9 +66,12 @@ if ! command -v docker >/dev/null 2>&1; then # Start dockerd with custom data root if [ -x "${DOCKER_DIR}/bin/dockerd" ]; then - # Symlink binaries so they're in PATH permanently + # Symlink binaries ln -sf "${DOCKER_DIR}/bin/docker" /usr/bin/docker 2>/dev/null ln -sf "${DOCKER_DIR}/bin/dockerd" /usr/bin/dockerd 2>/dev/null + # Start containerd first, then dockerd + "${DOCKER_DIR}/bin/containerd" &>/dev/null & + sleep 2 "${DOCKER_DIR}/bin/dockerd" --data-root "${DOCKER_DIR}/data" \ --exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \ --userland-proxy=false \