1、apt update
 2、curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
 3、echo 'deb https://download.docker.com/linux/debian stretch stable'> /etc/apt/sources.list.d/docker.list
 4、apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
 输入:y
 
 在这里选择:yes
 5、apt update
 6、sudo apt install docker.io
 7、验证是否安装成功:docker
 










