Cast Iron Container での作業
始める前に
次のコマンドを使用して、CI Container ID で Cast Iron Container にログインします。
docker exec -it <CI Container ID> /bin/bash
次に例を示します。docker exec -it 1f79e655352c536161313eb5e9ea8b0d5a72e0104358b106bb6b1e70892be022 /bin/bash。1f79e655352c536161313eb5e9ea8b0d5a72e0104358b106bb6b1e70892be022 は CI Container ID です。
注:
- 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 ログを使用できます。
警告
注: Cast Iron インスタンスで変更を行ってこのインスタンスを使用不可にする可能性がある追加のアプリケーション/Ubuntu パッケージをインストールしないことをお勧めします。