Last active
August 29, 2015 13:57
-
-
Save charz/9540977 to your computer and use it in GitHub Desktop.
A batch files to install docker in ubuntu 12.04
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
#!/bin/bash | |
# install the backported kernel | |
sudo apt-get update | |
sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring | |
# reboot | |
sudo reboot | |
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
#!/bin/bash | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get install -y lxc-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
sudo docker pull ubuntu |
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
sudo stop network-manager | |
echo "manual" | sudo tee /etc/init/network-manager.override | |
echo " | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
#auto eth1 | |
#iface eth1 inet static | |
# address 172.17.31.130 | |
# netmask 255.255.254.0 | |
# gateway 172.17.30.1 | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment