X11 forwarding issues with release 10

Thanks to @ctaggart I’ve been able to get this to work in beta11.
(Cameron’s blog: http://blog.ctaggart.com/2016/03/gnu-octave-via-docker-x11.html?m=1)

The dummy’s step-by-step quide:

  1. Run XQuartz
    a. Update preferences ‘Security’ tab - turn on 'Allow connection from network clients’
    b. Restart XQuartz and then check to see that it is listening on port 6000:
    lsof -i :6000

  2. Get your local machine’s IP:
    ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') && echo "My IP is: $ip"

  3. Allow the local machine to talk to XQuartz
    xhost + ${ip}

  4. Run your docker host:
    docker run -d --name firefox -e DISPLAY=${ip}:0 -v /tmp/.X11-unix:/tmp/.X11-unix jess/firefox

So, once the steps #1-3 are run then #4 is good to go for any container.

5 Likes