Hello,
as you have provided very little information (e.g. how you have started the container) I can only give you a hint where to search for more information.
Run docker container logs <containername|containerid>
to get the logs from the specified container which should give you some information why the program within the container stopped and therefore the container stopped.