Skip to content

Instantly share code, notes, and snippets.

@linuxoid69
Last active December 22, 2022 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxoid69/118c940574ad92b466a48c3694bb3863 to your computer and use it in GitHub Desktop.
Save linuxoid69/118c940574ad92b466a48c3694bb3863 to your computer and use it in GitHub Desktop.
how run gui application in docker
$ docker run -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix <image>
# sound
$ docker run --device=/dev/snd/controlC0 --device=/dev/snd/pcmC0D0p --device=/dev/snd/seq --device=/dev/snd/timer <image>
#on host machine
$ xhost +local:
@linuxoid69
Copy link
Author

need to install xvfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment