Skip to content

Instantly share code, notes, and snippets.

@giig982
Forked from slok/run_docker_x11.sh
Created March 26, 2019 15:06
Show Gist options
  • Select an option

  • Save giig982/a9cc9447fe6059dfaa3c154ff70857a4 to your computer and use it in GitHub Desktop.

Select an option

Save giig982/a9cc9447fe6059dfaa3c154ff70857a4 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