Add Docker CLI tools to jump box
This commit is contained in:
@@ -9,6 +9,11 @@ keys=( /etc/ssh/keys/ssh_host_*_key )
|
||||
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!"
|
||||
fi
|
||||
|
||||
# Setup the target user and their group
|
||||
echo "Setting up target user ${TARGET_USER} (uid=${TARGET_UID}, gid=${TARGET_GID})..."
|
||||
groupadd --gid "$TARGET_GID" "$TARGET_USER"
|
||||
|
||||
Reference in New Issue
Block a user