Last active
August 29, 2015 14:15
-
-
Save ssmylh/b333633ce95e45553191 to your computer and use it in GitHub Desktop.
Provision Docker in Vagrant - Ubuntu Trusty 64bit
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
#!/usr/bin/env bash | |
echo "Installing docker ..." | |
sudo apt-get update >/dev/null 2>&1 | |
sudo apt-get install -y docker.io >/dev/null 2>&1 | |
source /etc/bash_completion.d/docker.io | |
echo "Updating docker ..." | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 >/dev/null 2>&1 | |
sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update >/dev/null 2>&1 | |
sudo apt-get install -y lxc-docker >/dev/null 2>&1 | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment