x64架构运行arm64程序

如题

最开始是想要在x64平台构建arm64的docker镜像,最后发现安装完qemu后,可以直接运行arm64(等架构)程序。

安装qemu

sudo apt install qemu-user-static

测试

docker run -it --name buntu_arm64 arm64v8/ubuntu

查看架构

ls /proc/sys/fs/binfmt_misc/

参考
qemu-user-static

posted @ 2023-08-10 16:24  一年`  阅读(147)  评论(0编辑  收藏  举报