【问题标题】:How to fix dockerized apt-cacher-ng service only listen to IPv6如何修复 dockerized apt-cacher-ng 服务只听 IPv6
【发布时间】:2019-08-05 10:51:22
【问题描述】:

跟进Need help dockerize an apt-cacher-ng service,其中一个问题是,虽然我的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)

【问题讨论】:

    标签: docker ubuntu debian


    【解决方案1】:

    实际上,您的服务也在侦听 IPv4 接口。在netstat 输出中侦听的 IPv6 是netstat 和docker-proxy 组合的问题。在问题Make docker use IPv4 for port binding中查看更多详细信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-27
      • 2019-09-02
      • 2011-11-21
      • 1970-01-01
      • 1970-01-01
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多