Skip to content

Instantly share code, notes, and snippets.

@molivier
Last active January 7, 2016 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save molivier/e6ebde37f3405618ea7a to your computer and use it in GitHub Desktop.
Save molivier/e6ebde37f3405618ea7a to your computer and use it in GitHub Desktop.
Docker Install - Ubuntu 14.04
#!/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