FAKE0704/dsh-container-lifecycle ↗★ 0
dsh-container-lifecycle
Stage A 容器执行世界的生命周期插件:镜像 digest 锁定 → 有标签容器(sshd/同路径 bind mount/仅回环端口/宿主 uid 映射)→ helper 依赖包注入与入口哈希 → 临时 host key 锁定 known_hosts → ~/.ssh/config 托管块 → 运行时插入原版 dsh-ssh 连接行
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FAKE0704/dsh-container-lifecycleREADME
Read the full README ↗Configuration
Override by id from the profile's cordis.patch.yml (defaults shown):
- id: dsh-container-lifecycle
config:
alias: dsh-container # container name + ssh Host alias
image: dsh-container-sshd:a1
port: 2223 # loopback host port for sshd
aptMirror: "" # e.g. mirrors.tuna.tsinghua.edu.cn (first-use build only)
workspace: "" # default: process working directory (bind-mounted at the identical path)
imageRebind: false # one-shot deliberate re-pin after an intentional rebuild
Port collisions fail loudly with a named error naming the config knob. A rebuilt image under the same tag is refused with both digests; set imageRebind: true once to adopt the new digest (the container is then recreated — adopting into an old container would run old bytes).