Skip to content

Instantly share code, notes, and snippets.

@arturfog
Created June 21, 2018 17:22
Show Gist options
  • Save arturfog/026445c69534f6029efd9d8fade260d4 to your computer and use it in GitHub Desktop.
Save arturfog/026445c69534f6029efd9d8fade260d4 to your computer and use it in GitHub Desktop.
Creates docker container with ubuntu that can run GUI apps with sound and 3d acceleration
xhost +local:root
sudo docker run -it \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \
-v $HOME/Downloads:/tmp/Downloads \
--device /dev/dri \
--device /dev/snd \
-v /dev/shm:/dev/shm \
-v $XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse \
-e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
--group-add audio \
--group-add video \
--name ubuntu \
ubuntu /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment