Skip to content

Instantly share code, notes, and snippets.

@mbn18
Created October 29, 2014 07:49
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/d1b26269ff24947f6376 to your computer and use it in GitHub Desktop.
Save mbn18/d1b26269ff24947f6376 to your computer and use it in GitHub Desktop.
Quick start to Skype on Docker
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 (not needed if -v is used to share external dirs)
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