Last active
January 7, 2016 10:55
-
-
Save molivier/e6ebde37f3405618ea7a to your computer and use it in GitHub Desktop.
Docker Install - Ubuntu 14.04
This file contains 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/sh | |
# Docker Install - Ubuntu 14.04 | |
# wget https://gist.github.com/molivier/e6ebde37f3405618ea7a/raw/aa3b3369b9862853b4a0784bebc5e0a03fd3e717/docker.sh | |
# chmod +x docker.sh && sh docker.sh | |
# Universal Control Panel | |
UCP=true | |
# Install Docker repository (as root) | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
if [ "$UCP" = true ] | |
then | |
echo deb https://apt.dockerproject.org/repo ubuntu-trusty testing >> /etc/apt/sources.list.d/docker.list | |
else | |
echo deb https://apt.dockerproject.org/repo ubuntu-trusty main >> /etc/apt/sources.list.d/docker.list | |
fi | |
apt-get update | |
if [ "$UCP" = true ] | |
then | |
apt-get install -y docker-engine=1.9.0-0~trusty | |
service docker start | |
docker run --rm -it dockerorca/ucp install --help | |
else | |
apt-get install -y docker-engine | |
service docker start | |
fi | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment