You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to Docker, but I tried to create a container on Docker for Windows and it gives this error when I run it:
2022-11-14 19:43:22 mount: permission denied (are you root?) 2022-11-14 19:43:22 cat ./qemu-binfmt-conf.sh | sh -s -- --path=/qus/bin
I tried running as administrator, and it gave the same result. I also tried setting it up on a Raspberry Pi 3, and the same thing happened (using root and sudo).
The text was updated successfully, but these errors were encountered:
I get the same problem. I also see the same problem trying to use tonistiigi/binfmt:
$ sudo docker run --privileged --rm tonistiigi/binfmt --install all
error: operation not permitted
cannot mount binfmt_misc filesystem at /proc/sys/fs/binfmt_misc
main.run
/src/cmd/binfmt/main.go:183
main.main
/src/cmd/binfmt/main.go:170
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1571
This is on a GitPod Ubuntu 20.04.5 amd64 instance. Same issue with and without sudo. I seem to recall this not being a problem on amd64 platforms, but now for some reason I'm not able to get it to work.
Depending on the platform, it might not be possible to register binfmt formats. See the last item in https://dbhi.github.io/qus/development.html#roadmap. @jamesmortensen I believe that's what might be happening on GitPod, while it does work on GitHub Codespaces and GitHub Actions; they have different permissions settings in the machines/environments.
@energy-sync you should not need qus to run ARM containers on Windows, because since 2017 Docker for Windows comes with QEMU already preinstalled and interpreters registered. See https://dbhi.github.io/qus/related.html#linuxkit-binfmt-docker-binfmt. Which foreign architecture are you trying to register? Apart from that, are you using Hyper-V as a backend or WSL?
I am new to Docker, but I tried to create a container on Docker for Windows and it gives this error when I run it:
2022-11-14 19:43:22 mount: permission denied (are you root?)
2022-11-14 19:43:22 cat ./qemu-binfmt-conf.sh | sh -s -- --path=/qus/bin
I tried running as administrator, and it gave the same result. I also tried setting it up on a Raspberry Pi 3, and the same thing happened (using root and sudo).
The text was updated successfully, but these errors were encountered: