Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.