Skip to main content
 首页 » 编程设计

docker之添加新的 GPG key ,详见 Docker 安装

2024年02月27日40hnrainll

对“Docker”完全陌生,想知道这在安装说明中意味着什么。 https://docs.docker.com/engine/installation/linux/ubuntulinux/

4/ Add the new GPG key. 
 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --   recv-keys 58118E89F3A912897C070ADBF76221572C52609D 

请您参考如下方法:

这是 SecureApt 的一部分(强加密来验证下载的包)

apt-key is a program that is used to manage a keyring of gpg keys for secure apt.
gpg is the tool used in secure apt to sign files and check their signatures

如果 key 服务器已启动,则有效(请参阅 issue 13555 和“Key server times out while installing docker on Ubuntu 14.04 ”)

The pool hkp://p80.pool.sks-keyservers.net is a subset of servers which are also available on port 80. It's more friendly to firewalls and companies.

For some reason, most docker documentations and tutorials are giving that p80 pool for installation, without further explanation.

The thing is, this is a small pool of servers and they fail very often in practice. (The fact that most tutorials are sending people to that small pool probably doesn't help either).