Skip to content

docker_graphics_linux

Colley JM edited this page Apr 14, 2022 · 10 revisions

Docker options to enable graphic on linux

Solution 1

--net=host -e="DISPLAY" -v="$HOME/.Xauthority:/root/.Xauthority:rw"

Tested on :

  • ubuntu 20.04

Reference:

Solution 2

Do before docker run

xhost +

options for docker run

-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix

Do after docker run

xhost -

Tested on :

  • ???

Reference:

Clone this wiki locally