From 604d445d71fad732638ac2a943e87aa695cfb9f3 Mon Sep 17 00:00:00 2001 From: Gernot Klingler Date: Sat, 3 May 2014 00:42:16 +0200 Subject: [PATCH] allowing connections from localhost is not sufficient but xhost + is less secure. A better solution should be found. --- ubuntuWithNvidiaDriver/run.sh | 2 +- ubuntuWithOpenSourceDrivers/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntuWithNvidiaDriver/run.sh b/ubuntuWithNvidiaDriver/run.sh index f806415..9fec378 100755 --- a/ubuntuWithNvidiaDriver/run.sh +++ b/ubuntuWithNvidiaDriver/run.sh @@ -2,5 +2,5 @@ COMMAND=/bin/bash -xhost +localhost # allow connections to X server from localhost +xhost + # allow connections to X server docker run --privileged -e "DISPLAY=unix:0.0" -v="/tmp/.X11-unix:/tmp/.X11-unix:rw" -i -t ubuntu_with_nvidia_driver $COMMAND diff --git a/ubuntuWithOpenSourceDrivers/run.sh b/ubuntuWithOpenSourceDrivers/run.sh index 23a59cd..dccd9ee 100755 --- a/ubuntuWithOpenSourceDrivers/run.sh +++ b/ubuntuWithOpenSourceDrivers/run.sh @@ -2,5 +2,5 @@ COMMAND=/bin/bash -xhost +localhost # allow connections to X server from localhost +xhost + # allow connections to X server docker run --privileged -e "DISPLAY=unix:0.0" -v="/tmp/.X11-unix:/tmp/.X11-unix:rw" -i -t ubuntu_with_opensource_drivers $COMMAND