Installing Docker on Debian

Install packages to allow apt to use a repository over HTTPS,

apt-get install \
 apt-transport-https \
 ca-certificates \
 curl \
 gnupg2 \

Add Docker's official GPG key,

curl -fsSL | sudo apt-key add -

Add the Docker Stable repository,

add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \

Update the apt package index,

apt-get update

Install the latest version of Docker,

apt-get install docker-ce


Last modified: August 03 2017 19:21:19