docker-compose.ymlでcommandのところを以下のようにしていたらだめだった。
command: /etc/init.d/sshd restart && bash
以下のように複数コマンド実行する場合はbashスクリプトとして実行すれば大丈夫。
command: bash -c "/etc/init.d/sshd restart && bash"
なぜこれで大丈夫になるのか全然わからん・・
参考:
docker-compose.ymlでcommandのところを以下のようにしていたらだめだった。
command: /etc/init.d/sshd restart && bash
以下のように複数コマンド実行する場合はbashスクリプトとして実行すれば大丈夫。
command: bash -c "/etc/init.d/sshd restart && bash"
なぜこれで大丈夫になるのか全然わからん・・
参考: