diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-29 01:41:01 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-29 01:41:01 +0800 |
| commit | d8bfc59e2f5dc0728326ae7a143f8fdc113932e2 (patch) | |
| tree | c3b02a8d4d91d730cc21befe2b8dbf6d9b6bee0f /debian-container/lib/common.sh | |
| parent | d9932da9c00fd92aaa0cafa5d6d63a6f8e724ad1 (diff) | |
| download | rutils-d8bfc59e2f5dc0728326ae7a143f8fdc113932e2.tar.gz rutils-d8bfc59e2f5dc0728326ae7a143f8fdc113932e2.tar.xz | |
Add configurable container image sizing with support for creating and resizing ext4 images.
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'debian-container/lib/common.sh')
| -rw-r--r-- | debian-container/lib/common.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debian-container/lib/common.sh b/debian-container/lib/common.sh index d28948a..9fd03b4 100644 --- a/debian-container/lib/common.sh +++ b/debian-container/lib/common.sh @@ -53,12 +53,17 @@ dc_usage() { init NAME [选项] 创建指定名称的容器镜像 enter NAME [选项] 进入指定容器 exec NAME [选项] 在指定容器中执行命令 + resize NAME [选项] 扩大指定容器的镜像 status NAME 查看指定容器状态 list 列出所有容器 delete NAME 删除指定容器 init 选项: --tarball PATH 从本地 tarball 初始化,跳过软件包下载 + --size SIZE 镜像大小(默认:3G) + +resize 选项: + --size SIZE 新的镜像大小,只能扩大 base-create 选项: --output PATH 输出 tarball 路径 @@ -73,6 +78,7 @@ base-create 选项: 环境变量: DEBIAN_INSTANCES 实例目录(默认:当前目录/instances) + DEBIAN_SIZE 新实例镜像大小(默认:3G) DEBIAN_LOCK_FILE 锁文件路径(默认:/run/lock/debian-container.lock) DEBIAN_TARBALL 基础 tarball(默认:当前目录/debian-base.tar.gz) DEBIAN_SUITE Debian 版本(默认:stable) |
