aboutsummaryrefslogtreecommitdiff
path: root/debian-container/README
diff options
context:
space:
mode:
Diffstat (limited to 'debian-container/README')
-rw-r--r--debian-container/README8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian-container/README b/debian-container/README
index 7c5eea6..ef3bb97 100644
--- a/debian-container/README
+++ b/debian-container/README
@@ -7,7 +7,11 @@ Debian 容器
第一次创建基础软件包 tarball:
-sudo ./debian-container.sh base-create ./debian-stable.tar.gz
+sudo ./debian-container.sh base-create \
+ --output ./debian-stable.tar.gz \
+ --suite stable \
+ --arch amd64 \
+ --include sudo,vim-tiny,curl
从 tarball 创建容器:
@@ -58,8 +62,10 @@ DEBIAN_INSTANCES 实例目录
DEBIAN_LOCK_FILE 锁文件路径
DEBIAN_TARBALL 默认基础 tarball 路径
DEBIAN_SUITE Debian 版本,默认 stable
+DEBIAN_ARCH 目标架构
DEBIAN_MIRROR Debian 镜像地址
DEBIAN_INCLUDE 额外软件包,使用逗号分隔
+DEBIAN_EXCLUDE 要排除的软件包,使用逗号分隔
DEBIAN_NETWORK 默认网络模式,none 或 host
脚本实现按职责拆分在 lib/ 目录中,入口脚本只负责加载模块和分发命令。