From 808c626c612b238f6923c3ec2d6a05c5611d87db Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Thu, 29 Oct 2026 02:23:17 +0800 Subject: Add container profiles for persistent network and bind mount configuration. Signed-off-by: Richard Qin --- debian-container/lib/common.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian-container/lib/common.sh') diff --git a/debian-container/lib/common.sh b/debian-container/lib/common.sh index 4102188..96ed00b 100644 --- a/debian-container/lib/common.sh +++ b/debian-container/lib/common.sh @@ -61,6 +61,7 @@ dc_usage() { init 选项: --tarball PATH 从本地 tarball 初始化,跳过软件包下载 --size SIZE 镜像大小(默认:3G) + --profile PATH 复制实例 profile resize 选项: --size SIZE 新的镜像大小,只能扩大 @@ -79,6 +80,10 @@ base-create 选项: 挂载选项: --mount SPEC 目录挂载:HOST:CONTAINER[:ro|rw] +profile 配置项: + network=MODE + mount=HOST:CONTAINER[:ro|rw] + 环境变量: DEBIAN_INSTANCES 实例目录(默认:当前目录/instances) DEBIAN_SIZE 新实例镜像大小(默认:3G) -- cgit v1.2.3