Skip to content

Conversation

@obrie
Copy link
Member

@obrie obrie commented Oct 27, 2025

https://jira.unity3d.com/browse/NPE-785

We're hitting rate limiting issues when building images on unity linux runners. This is because the docker/setup-buildx-action workflow isn't configured to using the GCR mirror, which is what unity linux runners are set up to do by default (but doesn't apply when using this workflow). This mirror is set up to avoid docker.io rate limiting.

This updates the configuration to force the GCR mirror to be used.

Why

Full context here from slack:

Possibilities:
a) You pulled an image that was not on the cache and it had to fallback to dockerhub. Not all images are always available on the cache.
b) Deamon is configured on the runner and it's always used when you run normal docker commands like docker build. When you use the buildx action, maybe it somehow doesn't inherit the configuration from there, or maybe it doesn't even use the deamon directly. However, the logs show that mirror is there. And if this hasn't happened before with buildx, this should likely happen more often. ---> If this was the issue, you did the right fix.

And testing from slack:

I tested this again today. I attempted to pull up to 200 images on a unity-linux-runner with different configurations. > The results:

  • No setup-buildx-action: Passed
  • setup-buildx-action with install: true : Failed
  • setup-buildx-action with install: true and buildkitd-config-inline overrides: Passed

@obrie obrie requested a review from a team as a code owner October 27, 2025 22:04
@obrie obrie requested review from captainkevron and removed request for a team October 27, 2025 22:04
@obrie obrie merged commit 99c81b4 into master Oct 28, 2025
9 checks passed
@obrie obrie deleted the fix/npe-785 branch October 28, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants