diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-28 23:13:09 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-28 23:13:09 +0800 |
| commit | e7236907dfe3e9130d532d5e8a7f2b17af13df1c (patch) | |
| tree | 3548beab69f96ad5d669152b248d0ab15769dafe /debian-container/README | |
| parent | 36cf23ae3ba7295ca4021258681996fbbba9b14d (diff) | |
| download | rutils-e7236907dfe3e9130d532d5e8a7f2b17af13df1c.tar.gz rutils-e7236907dfe3e9130d532d5e8a7f2b17af13df1c.tar.xz | |
Refactor Debian container script into modular components with configurable paths and documentation.
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'debian-container/README')
| -rw-r--r-- | debian-container/README | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian-container/README b/debian-container/README new file mode 100644 index 0000000..94a72e8 --- /dev/null +++ b/debian-container/README @@ -0,0 +1,24 @@ +Debian 容器 + +这个工具使用 Linux 的 mount namespace、PID namespace 和 network namespace,创建 +一个最小 Debian 实验环境。 + +用法: + +sudo ./debian-container.sh init +sudo ./debian-container.sh enter +sudo ./debian-container.sh delete + +默认情况下,镜像和挂载目录位于当前目录: + +rootfs.ext4 +debian-root/ + +可以通过环境变量修改路径: + +sudo env \ + RUTILS_DEBIAN_IMAGE=/path/to/rootfs.ext4 \ + RUTILS_DEBIAN_ROOT=/path/to/debian-root \ + ./debian-container.sh enter + +脚本实现按职责拆分在 lib/ 目录中,入口脚本只负责加载模块和分发命令。 |
