参考 https://docs.docker.com/install/linux/docker-ce/debian/#set-up-the-repository
1. 安装必要软件:
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
2. 添加apt-get 源
curl-fsSLhttps://download.docker.com/linux/debian/gpg |sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository\"deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release-cs) \ stable"
3. 安装
apt-get update
apt-get install docker-ce
网友评论