binfmt icon indicating copy to clipboard operation
binfmt copied to clipboard

not work in centos7

Open Mon-ius opened this issue 1 year ago • 1 comments

[m0nius@centos-3 ~]$ sudo docker run --privileged --rm tonistiigi/binfmt --install all Unable to find image 'tonistiigi/binfmt:latest' locally latest: Pulling from tonistiigi/binfmt 8d4d64c318a5: Pull complete e9c608ddc3cb: Pull complete Digest: sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 Status: Downloaded newer image for tonistiigi/binfmt:latest error: no such device 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

Mon-ius avatar Feb 15 '24 18:02 Mon-ius

I don’t know what version you have. You need a version higher than centos7 to use this. Maybe your kernel module is not loaded, you can load it first and then try

sudo modprobe binfmt_misc

yxing-xyz avatar Mar 11 '24 09:03 yxing-xyz