Last active
August 29, 2015 14:21
-
-
Save adamstraube/6a8f207b662fd944f0ef to your computer and use it in GitHub Desktop.
Install Docker and a docker based VPN - Written originally for use on VPS's (Requires 3.10 Kernel at least)
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
#Get Docker | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list | |
aptitude update | |
apt-get install lxc-docker | |
#Get virtual network software | |
apt-get install vde2 | |
#Create new interfaces | |
vde_switch -tap tap0 | |
#Assign new interface IP | |
ip addr add 10.0.31.10 dev tap0 | |
#Assign IP range | |
ip addr add 10.0.31.10/16 dev tap0 | |
echo 'DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" --bridge="tap0" --iptables=false' > /etc/default/docker | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI: Not finished as VPS I had is no where near 3.10. Sticking with ssh -D localport -fN user@vps for now :)