Expected behavior
I expect
xhost + # I know this is not safe this is for the purpose of illustrating my point
docker run -it -v ${DISPLAY}:/tmp/.X11-unix/X0 ubuntu
or
xhost +
echo $DISPLAY
/private/tmp/com.apple.launchd.hF6VPfurBa/org.macosforge.xquartz:0
$ docker run -it -v /private/tmp/com.apple.launchd.hF6VPfurBa/org.macosforge.xquartz:0:/tmp/.X11-unix/X0 ubuntu
to run the container and enables X11.
as the following command is doing on ubuntu
docker run -it -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 ubuntu
Actual behavior
I got an error
invalid mode: /tmp/.X11-unix/X0.
Information
I tried to escape the : character in the OS DISPLAY environment variable with a \ or quitting all the expanded variable and I still got the same error.
- the output of:
Moby Menu > Diagnose & Feedback
on OS X
Docker for Mac: version: mac-v1.12.0-beta17
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160708-111358.tar.gz
[OK] docker-cli
[OK] app
[OK] menubar
[OK] virtualization
[OK] system
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux
- a reproducible case if this is a bug, Dockerfiles FTW
- page URL if this is a docs issue or the name of a man page
- host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )
Steps to reproduce the behavior
any ubuntu image.
- …
- …