Debian 8: Install docker-engine

This article will describe installing docker-engine. Please see here for usage of Docker.

1 Install docker-engine

The following script will install docker-engine.

#!/bin/sh

sudo apt-get install -y curl apt-transport-https \
  software-properties-common ca-certificates
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ \
debian-$(lsb_release -cs) \
main"
sudo apt-get update -y
sudo apt-get install -y docker-engine
sudo systemctl start docker
sudo systemctl enable docker
sudo gpasswd -a hiroom2 docker
sudo reboot

2 Execution result

Run hello-world.

$ docker run hello-world
<snip>
Hello from Docker!
<snip>