Docker: how to restart process inside of container?

前端 未结 3 1822
梦如初夏
梦如初夏 2021-02-05 11:47

I have a set of tests which I would like to run on docker container. In the middle of the tests I am changing me test data and I need to restart JETTY.

What is the bes

3条回答
  •  感动是毒
    2021-02-05 12:11

    Enter the container and restart it.

    Manual Way:

    docker exec -it  /bin/bash
    

    Or Automated Way:

    docker exec -it  /restartjettycommand.sh
    

提交回复
热议问题