如何修复 dockerized apt-cacher-ng 服务只听 IPv6
How to fix dockerized apt-cacher-ng service only listen to IPv6
跟进 ,问题之一是,虽然我的 apt-cacher-ng 服务已启动并且 运行,但它只监听 IPv6:
$ netstat -tanp | grep 3142
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::3142 :::* LISTEN -
再次,我正在关注
Docker 化 apt-cacher-ng 服务
https://docs.docker.com/engine/examples/apt-cacher-ng/
该文档中是否缺少某些内容?
(我从文档中唯一更改的是将 "FROM" 基数从 ubuntu
替换为 debian:sid
)
实际上,您的服务也在 IPv4 接口上侦听。 netstat
输出中的 IPv6 侦听是 netstat
和 docker-proxy
组合的问题。在问题
中查看更多详细信息
跟进
$ netstat -tanp | grep 3142
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::3142 :::* LISTEN -
再次,我正在关注
Docker 化 apt-cacher-ng 服务
https://docs.docker.com/engine/examples/apt-cacher-ng/
该文档中是否缺少某些内容?
(我从文档中唯一更改的是将 "FROM" 基数从 ubuntu
替换为 debian:sid
)
实际上,您的服务也在 IPv4 接口上侦听。 netstat
输出中的 IPv6 侦听是 netstat
和 docker-proxy
组合的问题。在问题