【问题标题】:How to solve error with rootless docker in github actions self hosted runner: write /proc/sys/net/ipv4/ping_group_range: invalid argument: unknown如何在 github 操作自托管运行器中使用无根 docker 解决错误:写入 /proc/sys/net/ipv4/ping_group_range:无效参数:未知
【发布时间】:2021-05-14 11:50:55
【问题描述】:

我正在尝试使用无根 docker 运行 github 操作运行程序,它大部分都可以工作,除了使用 v2 build-push 操作时出现以下错误。

Error: buildx call failed with: error: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: write sysctl key net.ipv4.ping_group_range: write /proc/sys/net/ipv4/ping_group_range: invalid argument: unknown

我已经尝试将此修复应用于 ping:https://docs.docker.com/engine/security/rootless/#routing-ping-packets

但这似乎没有帮助。

【问题讨论】:

    标签: docker github-actions


    【解决方案1】:

    解决方案是在 setup-buildx 操作中添加 driver: docker。

          - uses: docker/setup-buildx-action@v1
            with:
              driver: docker
    

    更多信息请见:https://github.com/docker/build-push-action/issues/292

    以及如何首先使用无根 docker 设置 github 操作:How to enable non-docker actions to access docker-created files on my self hosted github actions runner? (rootless docker)

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 2021-02-04
      • 2021-05-14
      • 2022-08-13
      • 1970-01-01
      • 1970-01-01
      • 2021-10-14
      • 2023-02-17
      • 1970-01-01
      相关资源
      最近更新 更多