fix: start containerd before dockerd

This commit is contained in:
admin 2026-08-03 15:46:12 +00:00
parent d8b40f4999
commit f3c82258ac

View file

@ -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 \