Skip to content

Instantly share code, notes, and snippets.

@mbn18
Last active August 29, 2015 14:18
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 mbn18/9567af68d09e8597cc82 to your computer and use it in GitHub Desktop.
Save mbn18/9567af68d09e8597cc82 to your computer and use it in GitHub Desktop.
Run skype in a docker
# Few steps to setup Skype as a docker
# Might be over complicated as I did it back at Oct 2014 when I just started with docker (but it still works well)
https://registry.hub.docker.com/u/tomparys/skype/
# Create Skype container
# Insure .Skype exist in the home dir
sudo docker run --name skype -d -p 55555:22 -v /home/miki/.Skype:/home/docker/.Skype tomparys/skype
ssh-keygen -t rsa -C "Just for skype"
$ cat .ssh/config
Host docker-skype
User docker
Port 55555
HostName 127.0.0.1
RemoteForward 64713 localhost:4713
ForwardX11 yes
IdentityFile /home/miki/.ssh/skype_rsa
ssh-copy-id -i /home/miki/.ssh/skype_rsa.pub docker-skype
# test
ssh docker-skype
# Start Skype (need to set local pulseaudio)
ssh docker-skype skype-pulseaudio &
# Or create a shortcut
cat /home/miki/.local/share/applications/skype.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Skype
Comment=The dummest way to chat
#Exec=/bin/sh "touch /home/miki/bh1"
#Exec=/bin/sh "ssh docker-skype skype-pulseaudio"
Exec=/usr/bin/ssh docker-skype skype-pulseaudio
Icon=/home/miki/Pictures/skype.png
Categories=Application;Communication
Version=1.0
Type=Application
Terminal=0
# set the timezone
nsenter -m -u -i -n -p -t `docker inspect --format {{.State.Pid}} skype`
dpkg-reconfigure tzdata
# copy backup files (if needed)
scp -rp .Skype/ docker@docker-skype:/home/docker/.Skype
# Or copy out
sudo docker cp .Skype e07f5ece0f4f:/home/docker/.Skype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment