Build windows images with buildx in Kubernetes #2202
-
Hello everyone, I'm currently in the process of migrating my self-hosted Azure agents to AKS. Given that these agents are utilized for Docker builds, and following Microsoft's recommendation to use buildx, I opted to create a builder with the Kubernetes driver. The builder functions correctly for Linux builds, but I encounter issues when attempting a Windows build, specifically when a Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Buildkit is working on support for windows containers: moby/buildkit#616 As far as I'm aware, |
Beta Was this translation helpful? Give feedback.
I think microsoft/Windows-Containers#34 is the better place to cover the overall state of user-facing stuff, and includes more user-facing experiments and results.
For example, simply having BuildKit working itself will not deliver buildx builder integration, or even a particularly user-friendly flow in BuildKit. (Using BuildKit directly is already relatively non-user-friendly, particularly on Windows where we don't yet have a strong packaging ecosystem delivering the dependencies.)
And to use buildx builders that rely on BuildKit in a container is something we haven't even started doing more than speculating about. Although I note that the linked article from 2022 has exercised a few of …