fix: docker symlink to /usr/bin, DOCKER_HOST for custom socket
This commit is contained in:
parent
1d4b6c9673
commit
f394d5fa97
2 changed files with 3 additions and 2 deletions
|
|
@ -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 "$@"
|
||||
|
|
|
|||
4
setup.sh
4
setup.sh
|
|
@ -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 &
|
||||
|
|
|
|||
Loading…
Reference in a new issue