以下の内容はhttps://anton0825.hatenablog.com/entry/2018/05/21/000000より取得しました。


tty:trueを設定していてもdockerコンテナがすぐ終了してしまう

docker-compose.ymlでcommandのところを以下のようにしていたらだめだった。

command: /etc/init.d/sshd restart && bash

以下のように複数コマンド実行する場合はbashスクリプトとして実行すれば大丈夫。

command: bash -c "/etc/init.d/sshd restart && bash"

なぜこれで大丈夫になるのか全然わからん・・

参考:

qiita.com




以上の内容はhttps://anton0825.hatenablog.com/entry/2018/05/21/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14