summary refs log tree commit diff
path: root/docker/crosvm_wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/crosvm_wrapper.sh')
-rwxr-xr-xdocker/crosvm_wrapper.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/docker/crosvm_wrapper.sh b/docker/crosvm_wrapper.sh
index 33891d6..ca68dc7 100755
--- a/docker/crosvm_wrapper.sh
+++ b/docker/crosvm_wrapper.sh
@@ -4,14 +4,19 @@
 # found in the LICENSE file.
 
 set -ex
+
+# grab the pwd before changing it to this script's directory
+pwd="${PWD}"
+
 cd "${0%/*}"
 
 exec docker run -it --rm \
     --privileged \
+    --ipc=host \
     -e DISPLAY=$DISPLAY -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
     -v /dev/log:/dev/log \
-    -v /tmp/.X11-unix:/tmp/.X11-unix \
-    --volume "$PWD":/wd \
+    -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
+    --volume "$pwd":/wd \
     --workdir /wd \
     crosvm \
     "$@"