我正在尝试使用无根docker运行github操作运行器,除了在使用v2构建-推送操作时出现以下错误外,大多数情况下都能正常工作。
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
但这似乎没有帮助。
发布于 2021-02-11 07:53:57
一种解决方案是将driver: docker添加到setup-buildx操作中。
- 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)
https://stackoverflow.com/questions/66142872
复制相似问题