Skip to content

Commit

Permalink
Merge pull request #24 from ehough/master
Browse files Browse the repository at this point in the history
--gpu and --alsa options don't respect host ownership of devices in /dev/snd and /dev/dri
  • Loading branch information
mviereck authored Mar 2, 2018
2 parents 1a7bfb9 + 6861ae8 commit 1e2a0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -3545,10 +3545,10 @@ start() {
## option --gpu : share graphics adapter device files
[ "$Gpu" = "yes" ] && {
Dockercommand="$Dockercommand \\
--device=/dev/dri:/dev/dri:rw"
--device=/dev/dri:/dev/dri:rw -v /dev/dri:/dev/dri"
for Line in $(find /dev/nvidia* /dev/vga_arbiter -maxdepth 0 2>/dev/null) ; do
Dockercommand="$Dockercommand \\
--device=$Line:$Line:rw"
--device=$Line:$Line:rw -v $Line:$Line"
done
}

Expand All @@ -3562,7 +3562,7 @@ start() {
--net=none"
## option --alsa
[ "$Alsa" = "yes" ] && Dockercommand="$Dockercommand \\
--device=/dev/snd:/dev/snd:rw"
--device=/dev/snd:/dev/snd:rw -v /dev/snd:/dev/snd"

# add custom docker arguments, imagename and imagecommand
Dockercommand="$Dockercommand \\
Expand Down

0 comments on commit 1e2a0fa

Please sign in to comment.