aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlexander Clouter <[email protected]>2020-09-20 10:31:44 +0100
committerAlexander Clouter <[email protected]>2020-09-20 11:45:08 +0100
commit41dee4b3212f761819b2781a43347cda48649f79 (patch)
tree9b343c029fdf5defd4d5c64a58161ab8da66199f /Dockerfile
parentremove need for DISPLAY (diff)
downloaddocker-osx-41dee4b3212f761819b2781a43347cda48649f79.tar.xz
docker-osx-41dee4b3212f761819b2781a43347cda48649f79.zip
remove need for privileged
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index c819311..f236ad5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -145,6 +145,8 @@ RUN touch Launch.sh \
&& chmod +x ./Launch.sh \
&& tee -a Launch.sh <<< '#!/bin/sh' \
&& tee -a Launch.sh <<< 'set -eu' \
+ && tee -a Launch.sh <<< 'sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true' \
+ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
&& tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-8}000 \' \
&& tee -a Launch.sh <<< '-cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \
&& tee -a Launch.sh <<< '-machine q35,accel=kvm:tcg \' \