【问题标题】:Docker error process_linux.go:319: getting the final child's pid from pipe caused "EOF": unknownDocker 错误 process_linux.go:319:从管道获取最后一个孩子的 pid 导致“EOF”:未知
【发布时间】:2021-12-14 01:54:07
【问题描述】:

我的 Docker 容器无法启动。日志中的错误信息是:

{"message":"OCI runtime create failed: container_linux.go:349: starting container process caused \
"process_linux.go:319: getting the final child's pid from pipe caused \\\"EOF\\\"\": unknown"}

下一步是什么?

【问题讨论】:

    标签: node.js docker


    【解决方案1】:

    使用 kubernetes 时,此错误可能是由 deployment 设置中的错误内存表示法引起的。

    错了

    ...
    spec:
      template:
        spec:
          container:
            resources:
              limits:
                memory: "300m"
              requests:
                memory: "300m"
    

    固定:

    ...
    spec:
      template:
        spec:
          container:
            resources:
              limits:
                memory: "300Mi"
              requests:
                memory: "300Mi"
    

    【讨论】:

      【解决方案2】:

      我通过设置解决了:

      sysctl -w user.max_user_namespaces=15000
      

      【讨论】:

      • 谢谢 Piero - 下次我会试试。非常感谢。
      【解决方案3】:

      2021 年更新:

      以下链接线程中的新答案声称他们已经找到了解决方案。以See this answer 为例。

      原答案:

      这是一个已知功能。{1}

      对我有用的解决方案是重新启动服务器实例。

      在 Plesk 中:

      1. 工具和设置(来自侧边菜单)

      2. 服务器管理(左侧第二组)

      3. 点击重启服务器

      参考:

      https://github.com/moby/moby/issues/40835

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-10-07
        • 1970-01-01
        相关资源
        最近更新 更多