Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows Agents #292

Closed
gburkecw opened this issue Jan 17, 2024 · 5 comments
Closed

Support Windows Agents #292

gburkecw opened this issue Jan 17, 2024 · 5 comments

Comments

@gburkecw
Copy link

gburkecw commented Jan 17, 2024

Description

Attempting to use this action on 'windows-latest' agents results in the following error during "Booting builder":

C:\Windows\system32\docker.exe buildx inspect --bootstrap --builder builder-6b9f230d-ee8f-43d3-a89f-71c9c655a311
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 2.4s done
#1 creating container buildx_buildkit_builder-6b9f230d-ee8f-43d3-a89f-71c9c655a3110 done
#1 ERROR: Error response from daemon: Windows does not support privileged mode

[internal] booting buildkit:


ERROR: Error response from daemon: Windows does not support privileged mode
Error: The process 'C:\Windows\system32\docker.exe' failed with exit code 1

@gburkecw
Copy link
Author

gburkecw commented Jan 17, 2024

I'm not sure if this action is intended to work on Windows agents or not... but it throws an error after attempting to setup. I am attempting to use the build-and-push action for the GHA caching features, which require buildx. Any advice or workarounds would be appreciated, thanks!

@crazy-max
Copy link
Member

crazy-max commented Jan 17, 2024

ERROR: Error response from daemon: Windows does not support privileged mode

Same as #228 (comment)

Why are you using Windows runners? Are you building a Windows container image? If that's the case, BuildKit does not support Windows containers yet. This is tracked in moby/buildkit#616. If not and you're building a Linux container image, then just use the Ubuntu runner.

@Togtja
Copy link

Togtja commented Aug 7, 2024

There is now experimental support for Windows, and I was wondering if setup buildx action would attempt to support the windows buildx?

@cwoodhayes
Copy link

+1

@crazy-max
Copy link
Member

There is now experimental support for Windows, and I was wondering if setup buildx action would attempt to support the windows buildx?

cc @colinhemmings

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

No branches or pull requests

4 participants