Skip to content

Instantly share code, notes, and snippets.

@atilaromero
Created October 8, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atilaromero/9d2039bda8e03ede03dfee68d4de8aaa to your computer and use it in GitHub Desktop.
Save atilaromero/9d2039bda8e03ede03dfee68d4de8aaa to your computer and use it in GitHub Desktop.
dkr ()
{
docker run --rm -it -w "`pwd`" -v "`pwd`":"`pwd`":Z -e DISPLAY -e GDK_BACKEND -e GDK_SCALE -e GDK_DPI_SCALE -e QT_DEVICE_PIXEL_RATIO -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 --device /dev/dri --device /dev/snd -v /etc/localtime:/etc/localtime:ro -v /tmp/.X11-unix/:/tmp/.X11-unix/ "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment