Reputation: 831
I have a very simple scenario.
I have some Dockerfile where CMD instruction starts up JETTY. After some tests performed I need to restart JETTY due to the change in my test data.
And I cannot restart JETTY process due to the docker is single process application. What will be the proper solution for that?
Thanks Regards, Sergii
Upvotes: 3
Views: 3642
Reputation: 38287
There are several ways you could proceed, depending on how often you'll need to restart Jetty.
docker restart
on the container. This will re-run the command or entrypoint, and it can be automated. Or ...docker exec -it /bin/bash
to enter the container and manually restart JETTY. Useful for when you want to interact with it more and debug, but not a good practice for production. orUpvotes: 1