第一步
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr
第二步
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
第三步
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' >
apt-get install docker-engine
/etc/apt/sources.list.d/docker.list
第四步
pt-get update
apt-get install docker-engine