已在Ubuntu26.04中安装了qemu-user qemu-user-binfmt,拉取容器后无法进入容器,一直显示
root:~# docker run --privileged -itd -v ~/bianbu-workspace:/mnt --name build-bianbu-rootfs Harbor
WARNING: The requested image’s platform (linux/riscv64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
3fa5cf6856f10c42e6db2857a49a75ee00ceae935cded6d768f96cbbea1b4425
root:~# docker exec -it -w /mnt build-bianbu-rootfs bash
double free or corruption (!prev)
查看qemu信息如下:
root:~# qemu-riscv64 --version
qemu-riscv64 version 10.2.1 (Debian 1:10.2.1+ds-1ubuntu3.2)
Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers
root:~# cat /proc/sys/fs/binfmt_misc/qemu-riscv64
enabled
interpreter /usr/bin/qemu-riscv64
flags: POF
offset 0
magic 7f454c460201010000000000000000000200f300
mask ffffffffffffff00fffffffffffffffffeffffff