I have a docker container that contains a java jar file. I am passing parameters to my jar file to get it to do different tasks. If I pass the parameters to the docker image, each time I get a new container. Is this recommended? can I reuse a container and pass in different parameters?
I run these commands many times a day, and don’t want hundreds of unneeded containers floating around.
What is the best way to handle this?
Thanks,
Eric