Last active
August 29, 2015 14:06
-
-
Save schleg/ded4064992518e706259 to your computer and use it in GitHub Desktop.
docker-setup-ubuntu-do
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
# update packages | |
sudo aptitude update | |
sudo aptitude -y upgrade | |
# aufs support | |
sudo aptitude install linux-image-extra-`uname -r` | |
# add docker repo key | |
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
# add docker repo to apt sources | |
echo "deb http://get.docker.io/ubuntu docker main" | sudo tee /etc/apt/sources.list.d/docker.list | |
# update apt repo | |
sudo aptitude update | |
# install docker | |
sudo aptitude install -y lxc-docker | |
# update firewall | |
sudo yes | ufw enable | |
sudo ufw allow ssh | |
sed -i '/DEFAULT\_FORWARD\_POLICY=\"DROP\"/c\DEFAULT_FORWARD_POLICY="ACCEPT"' /etc/default/ufw | |
sudo ufw reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment