Last active
December 17, 2016 09:44
-
-
Save andylibrian/7c1cde17086584dd3bf655bb056c4379 to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu 16.04
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 | |
sudo apt-get update | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-get update | |
apt-cache policy docker-engine | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual docker-engine python-pip git | |
sudo service docker start | |
sudo usermod -aG docker $USER | |
sudo pip install --upgrade pip | |
sudo pip install docker-compose | |
sg docker -c "docker run hello-world" && echo "Docker has been installed and is working correctly" | |
sg docker -c "bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment