使用 Cast Iron Container
开始之前
使用以下命令用 CI Container 标识登录到 Cast Iron Container:
docker exec -it <CI Container ID> /bin/bash
例如,docker exec -it 1f79e655352c536161313eb5e9ea8b0d5a72e0104358b106bb6b1e70892be022 /bin/bash,其中 1f79e655352c536161313eb5e9ea8b0d5a72e0104358b106bb6b1e70892be022 是 CI Container 标识。
注:
- 在 Docker 平台中未启用单独的 Cast Iron CLI 提示符,因此您将对各种任务使用相同的 Ubuntu 提示符。
- 没有使用 SSH 或 Telnet 与 Cast Iron Container 直接通信。唯一的通信方式是,登录到 Docker 主机系统,并使用上述命令登录。
关于此任务
使用此任务登录 Cast Iron Container 并与之交互。
过程
在 Cast Iron Container 内,要与 Cast Iron 交互,请使用命令 castiron。
castiron
Usage : castiron <options>
--start start all the castiron process
--stop stop all the castiron process
--restart restart all the castiron process
--status print status of all the castiron process
--version print current version of castiron
--upgrade <castiron upgrade file path> upgrades castiron to a new version
--generatepostmortem generate postmortem logs
注: 将在 /var/log 下提供 Cast Iron 日志,以便进行任何故障诊断。
警告
注: 建议不要安装任何其他应用程序/Ubuntu 软件包,这可能会导致 Cast Iron 实例发生更改,使其不可用。