diff --git a/jump-box/startup.bash b/jump-box/startup.bash index f354cb9..7f04fa9 100644 --- a/jump-box/startup.bash +++ b/jump-box/startup.bash @@ -10,8 +10,8 @@ mkdir -p "$(dirname "/etc/ssh/sshd_config.d/10-hostkeys.conf")" printf 'HostKey %s\n' "${keys[@]}" > "/etc/ssh/sshd_config.d/10-hostkeys.conf" # Setup the DinD socket: -if [ -z DOCKER_RUN_DIR ]; then - ln -s /run/dind/docker.sock /var/run/docker.sock || echo "Failed to symlink Docker socket!" +if [ -n DOCKER_RUN_DIR ]; then + ln -s "$DOCKER_RUN_DIR/docker.sock" /var/run/docker.sock || echo "Failed to symlink Docker socket!" fi # Setup the target user and their group