fix: symlink docker binaries to /usr/local/bin/ for PATH
This commit is contained in:
parent
676202f625
commit
d1c3f69f99
1 changed files with 3 additions and 0 deletions
3
setup.sh
3
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 &
|
||||
|
|
|
|||
Loading…
Reference in a new issue