Skip to content

Instantly share code, notes, and snippets.

@kodamirmo
Last active February 9, 2016 03:53
Show Gist options
  • Save kodamirmo/5cf8e608fed0e8fb33b9 to your computer and use it in GitHub Desktop.
Save kodamirmo/5cf8e608fed0e8fb33b9 to your computer and use it in GitHub Desktop.
Install Docker in Ubuntu 14.04
echo "=============> Update repositories"
apt-get update
echo "=============> Install linux extras"
apt-get install linux-image-extra-$(uname -r)
echo "=============> Install apparmor"
apt-get install apparmor
echo "=============> Ensure that APT works with the HTTP protocol"
apt-get install apt-transport-https ca-certificates
echo "=============> Add the new GPG key"
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "=============> Create docker list"
echo -n "" > /etc/apt/sources.list.d/docker.list
echo -n "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
echo "=============> Update repositories"
apt-get update
echo "=============> Purge the old repo if it exists"
apt-get purge lxc-docker
echo "=============> Verify that APT is pulling from the right repository"
apt-cache policy docker-engine
echo "=============> Install Docker"
apt-get install docker-engine
echo "=============> Start the docker daemon"
service docker start
echo "=============> Finish, check your installation <=============="
@kodamirmo
Copy link
Author

Run:

sudo sh installdocker.sh

@kodamirmo
Copy link
Author

Download and run:

  • curl https://gist.githubusercontent.com/kodamirmo/5cf8e608fed0e8fb33b9/raw/ca7e3d0823542f3edec92a3f677f7662636b7eb7/install_docker.sh > install_docker.sh
  • sudo sh install_docker.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment