跳转到内容
For the complete documentation index, see llms.txt. This page is also available as Markdown.

18.16.跨架构测试

emulators/qemu-user-static 软件包可用于测试为其他架构构建的容器镜像。安装该软件包后,启用并启动相应服务,为所有受模拟的架构注册镜像激活器:

# pkg install emulators/qemu-user-static
# service qemu_user_static enable
# service qemu_user_static start

然后通过挂载相应的 QEMU 二进制文件,即可在 amd64 主机上运行 arm64 镜像:

# podman run -it --rm --arch=arm64 \
    -v /usr/local/bin/qemu-aarch64-static:/usr/local/bin/qemu-aarch64-static \
    ghcr.io/freebsd/freebsd-runtime:14.snap uname -a
FreeBSD 73d4049d10b2 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC arm64

最后更新于