主机服务器可以访问互联网,但dockerfile构建无法访问互联网以提取存储库
主机服务器可以访问互联网
[root@jenkins2 ~]# ping archive.debian.org
PING archive.debian.org (130.89.148.13) 56(84) bytes of data.
64 bytes from klecker-archive.debian.org (130.89.148.13): icmp_seq=1 ttl=51 time=161 ms
64 bytes from klecker-archive.debian.org (130.89.148.13): icmp_seq=2 ttl=51 time=161 ms
64 bytes from klecker-archive.debian.org (130.89.148.13): icmp_seq=3 ttl=51 time=162 ms
错误
---> Running in 04379d56c33b
Err:1 http://archive.debian.org/debian jessie InRelease
Temporary failure resolving 'archive.debian.org'
Err:2 http://security.debian.org jessie/updates InRelease
Temporary failure resolving 'security.debian.org'
Reading package lists...
W: Failed to fetch http://archive.debian.org/debian/dists/jessie/InRelease Temporary failure resolving 'archive.debian.org'
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
这是一台AWS机器,出站规则为All,all,0.0.0.0 / 0
需要指导,问题出在哪里以及如何解决