Skip to content

Instantly share code, notes, and snippets.

@slok
Created February 22, 2015 11:11
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save slok/acb235ae30129307fd53 to your computer and use it in GitHub Desktop.
Save slok/acb235ae30129307fd53 to your computer and use it in GitHub Desktop.
x11 with docker archlinux
KEY=$(xauth list |grep $(hostname) | awk '{ print $3 }' | head -n 1)
DCK_HOST=docker-skype
xauth add $DCK_HOST/unix:0 . $KEY
docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME/.Xauthority:/tmp/.Xauthority \
-v /dev/snd:/dev/snd \
-e DISPLAY=unix$DISPLAY \
-e XAUTHORITY=/tmp/.Xauthority \
-h $DCK_HOST \
jess/skype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment