Created
February 8, 2014 12:55
-
-
Save klaemo/8883314 to your computer and use it in GitHub Desktop.
Setup docker on ubuntu
This file contains hidden or 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
printf '\e[1;34m%b\e[m' "\nInstalling Docker...\n" | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sh -c "echo deb http://get.docker.io/ubuntu docker main\ | |
> /etc/apt/sources.list.d/docker.list" | |
apt-get -y update | |
apt-get -y install lxc-docker | |
printf '\e[1;34m%b\e[m' "\nConfiguring firewall for Docker...\n" | |
sed -e 's/^DEFAULT_FORWARD_POLICY=.*$/DEFAULT_FORWARD_POLICY="ACCEPT"/' -i /etc/default/ufw | |
ufw allow 4243/tcp | |
ufw status | |
ufw reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[sudo] ./setup-docker-on-ubuntu.sh