Created
September 7, 2017 20:44
-
-
Save j-mcnally/d3ddc3deb4902519adc0d910cef8fc4d to your computer and use it in GitHub Desktop.
Install docker on ubuntu
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get -y install apt-transport-https ca-certificates | |
sudo apt-key adv \ | |
--keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-cache policy docker-engine | |
sudo apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get -y install docker-engine | |
sudo service docker start | |
sudo usermod -aG docker $USER | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment