我正在尝试使用installation guidelines构建用于构建Zoo-Project的Docker镜像。
我支持公司代理,因此我设置了环境指向它:
root@myContainer$ env
HTTP_PROXY=http://10.xxx.y.zzz:3128
https_proxy=http://10.xxx.y.zzz:3128
http_proxy=http://10.xxx.y.zzz:3128
HTTPS_PROXY=http://10.xxx.y.zzz:3128
不幸的是,当我尝试从Dockerfile或容器内运行以下命令时,它会一直失败:
root@myContainer$ add-apt-repository ppa:ubuntugis/ppa
Official stable UbuntuGIS packages.
More info: https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmpl5mo2xz1/pubring.gpg' created
gpg: keyserver receive failed: No name
我尝试了以下但没有成功:
我的resolv.conf看起来像这样(来自容器内):
root@myContainer$ more /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.8.4
nameserver 10.171.108.2
search rennes.mycompany.fr
任何人都有提示吗?