Skip to content

Instantly share code, notes, and snippets.

@jaelliot
Forked from dpp/install_docker.sh
Created May 25, 2017 19:46
Show Gist options
  • Save jaelliot/13e647a54c7ba7e38a51bcc62a7baf41 to your computer and use it in GitHub Desktop.
Save jaelliot/13e647a54c7ba7e38a51bcc62a7baf41 to your computer and use it in GitHub Desktop.
A script to install Docker on a minimal Ubuntu 16.04 machine
#!/bin/bash
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-cache policy docker-engine
apt-get update
apt-get upgrade -y
apt-get install -y linux-image-extra-$(uname -r)
apt-get install -y docker-engine
service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment