Created
October 29, 2014 07:49
-
-
Save mbn18/d1b26269ff24947f6376 to your computer and use it in GitHub Desktop.
Quick start to Skype on Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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