diff --git a/setup.sh b/setup.sh index d4f97ff..e362c52 100644 --- a/setup.sh +++ b/setup.sh @@ -66,6 +66,9 @@ 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 + 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" \ --exec-root "${DOCKER_DIR}/exec" --pidfile "${DOCKER_DIR}/docker.pid" \ &>/dev/null &