Last active
July 22, 2016 17:42
-
-
Save ericzumba/3860a5865173432ac5702ecc3dd4bfa8 to your computer and use it in GitHub Desktop.
ubuntu 16.04 docker install
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 | |
# based on https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04 | |
apt-get update | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-cache policy docker-engine | |
apt-get install -y docker-engine | |
systemctl status docker | |
usermod -aG docker ubuntu | |
# separate volume for /var/log | |
sudo mkfs.ext4 -F /dev/xvdb | |
sudo mount -t ext4 /dev/xvdb /var/log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment