I am to host a
TCP server, developed by Java, inside a java docker container.
All what I have in the
dockerfile is a copy command for the server application and the bash file, which used to run the server.
However, the server is stopped some seconds after running the container?
I use the following command for running the container:
docker run -d -p 2701:2701 --name app_test_con_1 app_test_img_1
And this is the bootstrap command in the
Is there any way to keep server running for ever? Since it does that if I run it with the same
.sh files in the host OS; Of course as long as the terminal is not closed.