当前位置:   article > 正文

gpg: keyserver receive failed: Cannot assign requested address

gpg: keyserver receive failed: cannot assign requested address

问题描述

在利用dockerfile建立镜像时,遇到gpg: keyserver receive failed: Cannot assign requested address的错误,导致进程中断。

Step 4/8 : RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 38DBBDC86092693E
 ---> Running in 857af6ee308a
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: Cannot assign requested address
  • 1
  • 2
  • 3
  • 4
  • 5

解决方法

RUN mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/129315
推荐阅读
相关标签
  

闽ICP备14008679号