feat: run as current user

This commit is contained in:
2026-08-19 14:07:08 +02:00
parent b396d47a7a
commit 2b46cbae1e
8 changed files with 39 additions and 1 deletions
+5
View File
@@ -8,11 +8,16 @@ echo "
=> Starting container
"
userid=$(id -u)
usergroup=$(id -g)
docker run -it \
-v $mount:/mnt \
-v ~/.config/fish:/root/.config/fish \
-v ~/projects/system/dotfiles/scripts/:/root/projects/system/dotfiles \
--name $name \
--hostname jh-dev-container-$name \
-u $userid:$usergroup \
-w /mnt \
git.janishutz.com/registry/dev-container-base