Last active
August 29, 2015 13:56
-
-
Save harto/9183878 to your computer and use it in GitHub Desktop.
Install Docker
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
#!/bin/bash | |
set -e | |
set -x | |
# Install Docker package | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
sh -c 'echo deb https://get.docker.io/ubuntu docker main >/etc/apt/sources.list.d/docker.list' | |
apt-get -y update | |
apt-get -y install linux-image-extra-$(uname -r) | |
apt-get -y install lxc-docker | |
# Give Docker lots of space | |
echo 'DOCKER_OPTS="-g /mnt/docker"' >/etc/default/docker | |
service docker restart | |
# Let `ubuntu` run Docker commands | |
adduser ubuntu docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment