-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
.buildkit_qemu_emulator: operation not supported #24000
Comments
A friendly reminder that this issue had no activity for 30 days. |
@anthr76 did you install the qemu binaries ?
Try this once |
Moving a comment over from #24646: A partial explanation of what is happening, in my understanding:
As a workaround, you can disable SELinux on the machine VM. I solemnly swear I will not do this in production.
|
@Sayed-Imran the |
I do not recommend this command. This is one of the not-solutions that crops up in many discussions of the issue but I think it's distracting from the root cause. Please, let's consider further discussion of this command as off-topic for this issue and continue elsewhere. Why not to use `multiarch/qemu-user-static`Firstly, this is an outdated container image that that was last pushed 2 years ago and contains old copies of the The BuildKit container provides its own, newer
As @kaovilai points out, this old The container's entry point writes to Although it's a neat trick that you can do this, it's a much better idea to just configure your container host properly so that the change persists across reboots. Use your distro's (probably newer) packaged QEMU. Don't let weird container images reconfigure your kernel. Again, if you are running on macOS or Windows, the Podman machine VM is already properly configured. As I wrote in my earlier comment, the issue has to do with SELinux denying an attempt to set an extended attribute on a file, which BuildKit treats as a fatal error but shouldn't. It has basically nothing to do with the particular binary in question and any discussion of emulation, |
Discussed in #23890
Originally posted by anthr76 September 6, 2024
Hello! I'm trying to use the Docker CLI with the
DOCKER_HOST
set to the Podman socket on MacOS.I have a project I'm trying to build (https://github.com/goauthentik/authentik) that uses buildx.
I'm using a arm64 Mac and the command I'm trying to invoke is
DOCKER_BUILDKIT=1 docker build . --tag authentik:test1 --platform=linux/amd64 -f Dockerfile --load
This fails with a error
This does run okay on the native architecture.
Has anyone ever seen this before and know if it's a bug or a workaround?
I found this related issue dagger/dagger#8054
I know disabling SELinux on CoreOS is usually not a route you can really take so not sure how to approach this.
Does anyone know which codepath this lies in?
The text was updated successfully, but these errors were encountered: