Skip to content

Commit

Permalink
--podman: set --userns=keep-id #255
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Sep 19, 2020
1 parent 5eccf45 commit 98c6189
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -4010,8 +4010,12 @@ create_dockercommand() { ### create command to run docker

[ "$Createcontaineruser" = "yes" ] && {
# Disable user namespacing to avoid file permission issues with --home or --share. Files need same UID/GID.
$Dockerexe run --help | grep -q -- '--userns' && Dockercommand="$Dockercommand \\
--userns host"
case $Podman in
yes) Dockercommand="$Dockercommand \\
--userns=keep-id" ;;
no) $Dockerexe run --help | grep -q -- '--userns' && Dockercommand="$Dockercommand \\
--userns host" ;;
esac
}

# add container user groups, mainly video and audio and --group-add
Expand Down

0 comments on commit 98c6189

Please sign in to comment.