docker 在某些 kernel / version 组合下 /etc/resolv.conf 可能是 ro mount, > redirect 失败 → set -e 触发 → 容器立即退出 → docker exec 报 "cannot exec in a stopped container"。 修法:tmp file 中转 + cat > 失败 || warn,resolv.conf 写不动也继续跑 iptables 等其他启动逻辑;此时容器仍能跑 shell/run_python,只是 DNS 解析跪 ── 比容器 直接退出可调试。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| sandbox | ||