1
0
nixfiles/pkgs/run-with-docker-group/run-with-docker-group.sh

15 lines
266 B
Bash
Raw Normal View History

2024-08-05 09:59:33 +02:00
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -eq 0 ]]; then
set -- "${SHELL}"
fi
exec systemd-run \
"--property=User=$(id -un)" \
"--property=SupplementaryGroups=docker" \
"--pty" "--same-dir" "--wait" "--collect" "--service-type=exec" \
"--quiet" \
"$@"