Install docker for rancher on Debian 9
Published by Vitaly Musin on October 5th, 2017
apt-get remove docker docker-engine docker.io && \
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common && \
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - && \
apt-key fingerprint 0EBFCD88 && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-cache madison docker-ce
apt install docker-ce=17.06.2~ce-0~debian