Last active
February 9, 2016 03:53
-
-
Save kodamirmo/5cf8e608fed0e8fb33b9 to your computer and use it in GitHub Desktop.
Install Docker in 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
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 <==============" |
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
Run:
sudo sh installdocker.sh