Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created September 7, 2017 20:44
Show Gist options
  • Save j-mcnally/d3ddc3deb4902519adc0d910cef8fc4d to your computer and use it in GitHub Desktop.
Save j-mcnally/d3ddc3deb4902519adc0d910cef8fc4d to your computer and use it in GitHub Desktop.
Install docker on ubuntu
#!/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