Created
June 21, 2018 17:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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