Skip to content

Instantly share code, notes, and snippets.

@livmackintosh
Last active October 14, 2016 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save livmackintosh/086a611b5d86371540c7751a26f0e399 to your computer and use it in GitHub Desktop.
Save livmackintosh/086a611b5d86371540c7751a26f0e399 to your computer and use it in GitHub Desktop.
Install Docker Engine on Ubuntu 16.04 x64
#!/bin/bash
# Install Docker Engine on Ubuntu 14.04 and 16.04 LTS
#
# Installs Docker Engine and it's dependencies, then adds
# the current user to the docker group and starts the Docker
# service.
echo "Docker Installer for Ubuntu 14.04 and 16.04"
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge -y lxc-docker
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install -y docker-engine
user=$(whoami) ; sudo usermod -aG docker $user
sudo service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment