签名无法validation,因为安装docker时公钥不可用

无法安装docker:

sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list" 

错误日志:

GPG错误: https ://get.docker.com docker发布:以下签名无法validation,因为公钥不可用:NO_PUBKEY D8576A8BA88D21E9

如果不想使用手动http://docs.docker.com/linux/step_one/中的那些命令:

 $ sudo apt-get update $ sudo apt-get install wget $ wget -qO- https://get.docker.com/ | sh 

有你需要的东西:

  $ wget -qO- https://get.docker.com/gpg | sudo apt-key add - 

PS: https : //docs.docker.com/installation/debian/

得到的解决scheme,我试图在32位Ubuntu上安装docker 1.5,而文档说,它需要64位的Ubuntu。

请在“ 先决条件”部分查看

似乎入门页面已更改。

2017年8月

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

https://docs.docker.com/engine/installation/linux/docker-ce/debian/#install-using-the-repository