binfmt
binfmt copied to clipboard
not work in centos7
[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
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