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
Sounds like the process you're trying to restart is the primary process for the docker container (ie. the one you set in your Dockerfile if you have one, and when you run 'ps -ef' inside the container you would see the PID for your process set to 1). If this is the case, then you cannot restart it from inside the container. You should just restart the container itself:
docker restart