Skip to content

Instantly share code, notes, and snippets.

@rac021
Created September 7, 2017 21:55
Show Gist options
  • Save rac021/e69975aa4f7526526b4d967f146ea0d3 to your computer and use it in GitHub Desktop.
Save rac021/e69975aa4f7526526b4d967f146ea0d3 to your computer and use it in GitHub Desktop.
# start pulseaudio
$ docker run -d \
-v /etc/localtime:/etc/localtime \
-p 4713:4713 \ # expose the port
--device /dev/snd \ # sound
--name pulseaudio \
jess/pulseaudio
# start skype
$ docker run -it \
-v /etc/localtime:/etc/localtime \
-v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
-e DISPLAY=unix$DISPLAY \ # pass the display
--device /dev/snd \ # sound
--link pulseaudio:pulseaudio \ # link pulseaudio
-e PULSE_SERVER=pulseaudio \
--device /dev/video0 \ # video
--name skype \
jess/skype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment