fix: symlink docker binaries to /usr/local/bin/ for PATH

This commit is contained in:
admin 2026-08-03 15:22:47 +00:00
parent 676202f625
commit d1c3f69f99

View file

@ -66,6 +66,9 @@ if ! command -v docker >/dev/null 2>&1; then
# Start dockerd with custom data root # Start dockerd with custom data root
if [ -x "${DOCKER_DIR}/bin/dockerd" ]; then if [ -x "${DOCKER_DIR}/bin/dockerd" ]; then
# Symlink binaries so they're in PATH permanently
ln -sf "${DOCKER_DIR}/bin/docker" /usr/local/bin/docker 2>/dev/null
ln -sf "${DOCKER_DIR}/bin/dockerd" /usr/local/bin/dockerd 2>/dev/null
"${DOCKER_DIR}/bin/dockerd" --data-root "${DOCKER_DIR}/data" \ "${DOCKER_DIR}/bin/dockerd" --data-root "${DOCKER_DIR}/data" \
--exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \ --exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \
&>/dev/null & &>/dev/null &