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

buildx failed with: ERROR: Error response from daemon: Windows does not support privileged mode #228

Closed
major0 opened this issue Apr 11, 2023 · 1 comment · Fixed by docker/buildx#1869

Comments

@major0
Copy link

major0 commented Apr 11, 2023

Behaviour

The docker/build-push action fails with setup-buildx-action on Windows and I can find no docs for how to configure buildx to get the build to work on windows.

I assume that ever since this change testcontainers/moby-ryuk#40 that building on Windows should available.

Steps to reproduce this issue

  1. Run a docker build with runs-on: windows-latest

Expected behaviour

Build completes

Actual behaviour

Build fails

Configuration

runs-on: windows-latest

Logs

ERROR: Error response from daemon: Windows does not support privileged mode
Error: buildx failed with: ERROR: Error response from daemon: Windows does not support privileged mode
@crazy-max
Copy link
Member

Looking at testcontainers/moby-ryuk#40, you want to build a Windows image. BuildKit does not support Windows containers yet (currently tracked in moby/buildkit#616).

Also I'm able to repro:

jobs:
  build:
    runs-on: windows-latest
    steps:
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2

image

But the action does not seem to fail:

image

This might be something we need to fix upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants