|
|
本帖最后由 This_is_not_for 于 2026-8-31 16:48 编辑
- services:
- binfmt: # QEMU 仿真环境
- image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/tonistiigi/binfmt:qemu-v9.2.2-52-linuxarm64
- container_name: binfmt
- privileged: true
- network_mode: host
- command: ["--install", "all"]
- restart: "no"
- iventoy: # iVentoy 本体
- image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/garybowers/iventoy:latest
- container_name: iventoy
- platform: linux/amd64 # 强制使用 x86_64 架构
- restart: always
- privileged: true # 特权模式
- network_mode: host
- ports:
- - "67:67/udp" # DHCP Server
- - "69:69/udp" # TFTP Server
- - "10809:10809" # NBD Server (NBD)
- - "16000:16000" # PXE Service HTTP Server (iVentoy PXE Service)
- - "26000:26000" # PXE GUI HTTP Server (iVentoy GUI)
- volumes:
- - ./images:/iventoy/iso # 操作系统镜像文件路径
- - ./data:/iventoy/data # 存放 License, 配置文件等
- - ./user:/iventoy/user # 存放用户文件, 第三方软件包, 自动安装脚本等文
- - ./log:/iventoy/log # 存放 iVentoy 运行日志
复制代码
其实 Docker 容器部署前置安装QEMU就行了 |
|