fix: docker symlink to /usr/bin, DOCKER_HOST for custom socket

This commit is contained in:
admin 2026-08-03 15:43:54 +00:00
parent 1d4b6c9673
commit f394d5fa97
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
export DOCKER_HOST=unix:///opt/fw/docker/docker.sock
# Wallarm Node Manager — wrapper
export PATH="/opt/fw/docker/bin:$PATH"
/usr/bin/env python3 /opt/fw/app/main.py "$@"

View file

@ -67,8 +67,8 @@ 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
ln -sf "${DOCKER_DIR}/bin/docker" /usr/bin/docker 2>/dev/null
ln -sf "${DOCKER_DIR}/bin/dockerd" /usr/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 &