-
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
-
echo 'deb https://download.docker.com/linux/debian stretch stable'> /etc/apt/sources.list.d/docker.list
-
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
-
apt-get update
-
sudo apt install docker.io
-
docker -v
检查docker安装情况,出现下图情况即安装成功。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END