Created
February 6, 2017 05:27
-
-
Save ravibhure/13151612cc29d0ab78419c0665e8932b to your computer and use it in GitHub Desktop.
Install Docker
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
#!/bin/bash | |
# install docker on ubuntu | |
# https://docs.docker.com/engine/installation/linux/ubuntu/ | |
myname=`id -u -n` | |
sudo apt-get update | |
sudo apt-get -y install curl \ | |
linux-image-extra-$(uname -r) \ | |
linux-image-extra-virtual | |
sudo apt-get -y install apt-transport-https ca-certificates | |
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add - | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository \ | |
"deb https://apt.dockerproject.org/repo/ \ | |
ubuntu-$(lsb_release -cs) \ | |
main" | |
sudo apt-get update | |
sudo apt-get -y install docker-engine | |
#add running user to docker group | |
sudo usermod -a -G docker $myname | |
sudo docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment