环境:
VM 12 Pro
Ubuntu 16.04
前面步骤按照docker官网说明执行无误:
直到执行下一步:
$ curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg |sudo apt-key add -
出现错误:
curl: (35) gnutls_handshake() failed: Error in the pull function.
gpg: no valid OpenPGP data found.
解决办法,依次执行:
sudo apt-get install ca-certificates
wget --no-check-certificate https://download.docker.com/linux/ubuntu/gpg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg
可以看到public key成功生成,再来
sudo apt-key add gpg
显示OK。
剩下继续按照官方文档来
网友评论