Skip to content

Instantly share code, notes, and snippets.

@molivier
Last active March 1, 2018 20:05
Show Gist options
  • Save molivier/bcf494041e11b9fb73a1f46a05ee596a to your computer and use it in GitHub Desktop.
Save molivier/bcf494041e11b9fb73a1f46a05ee596a to your computer and use it in GitHub Desktop.
Install Docker Ubuntu 16.04 LTS
#!/usr/bin/env bash
apt-get update
apt-get install -y apt-transport-https ca-certificates
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
apt-get update
apt-get install -y docker-engine
service docker start
docker version
@hegdedarsh
Copy link

Getting the below error:-

hegdedarsh@hegdedarsh-Inspiron-N5010:~$ sudo apt-get install -y docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment