Getting X11 client work with x2go from docker container
- Details
- Category: Blog
- Published: Thursday, 09 September 2021 16:44
- Written by Lars Berntzon
- Hits: 2979
Having a X11 client running in a docker container to run properly in a x2go session is not quite straight forward from normal X11 clients in docker. To make it work its important to have the option --network=host set.
Like this:
docker run -e HOME=$HOME -e DISPLAY=$DISPLAY --network=host -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:$HOME/.Xauthority --user $(id -u):$(id -g) "image-name"