【问题标题】:Gearmand Does Not Start - Socket Address Family Not SupportedGearmand 不启动 - 不支持套接字地址系列
【发布时间】:2017-02-09 00:55:13
【问题描述】:

我正在尝试在 Ubuntu 主机上运行的 Docker 容器上运行 Gearman 作业服务器。但是,在启动时,我收到一个错误:[ main ] socket()(Address family not supported by protocol) -> libgearman-server/gearmand.cc:470

我尝试在主机上禁用IPv6,但它仍然不起作用。

【问题讨论】:

    标签: ubuntu docker gearman


    【解决方案1】:

    问题已解决。它与 Gearman 和 Docker 无关,而是与特定的 Ubuntu 安装有关。重新格式化后,一切正常

    【讨论】:

      【解决方案2】:

      我在使用 alpine tomcat docker 映像时也遇到了这个问题。在主机上禁用 IPv6 时,docker 似乎并没有解决所有问题。

      就我而言,我怀疑重新格式化为您解决的根本问题是主机上禁用了 IPv6,但来宾容器正在尝试使用它,而 docker 无法处理。重新格式化将在内核中重新启用 IPv6(仍然可以根据具体情况禁用接口),从而允许 docker 在客户机中使用它。

      Nginx not starting when IPv6 is not enabled in host machine

      【讨论】:

        猜你喜欢
        • 2016-12-22
        • 2019-04-19
        • 2013-11-21
        • 1970-01-01
        • 2020-04-23
        • 2023-03-29
        • 1970-01-01
        • 2013-02-04
        • 1970-01-01
        相关资源
        最近更新 更多