On my OSX, I can show a gui interface from a docker container successfully with Xqautz as the following command:
docker run -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -e DISPLAY=$DISPLAY --privileged -ti MY_OWN_DOCKER_IMAGE bash
However, I would like to put MY_OWN_DOCKER_IMAGE inside a docker-machine(called default) and show the gui interface on my OSX.
My scenario like below:
- Execute a gui application inside a container running inside default VM.
- pass GUI view from container to default VM.
- pass GUI view from default VM to OSX.
- GUI interface show on my macbook !
I got a question here: how do I set the "-v" and "-e" parameters when I am trying to do "docker run MY_OWN_DOCKER_IMAGE" inside default VM? or is there any other solution?