gaborvecsei / Stocks-Pattern-Analyzer

This tool should help discover different patterns based on similarity measures in historical (financial) data
Other
225 stars 81 forks source link

Docker container doesn't stop automatically after we exit the container #4

Closed gurashish1singh closed 3 years ago

gurashish1singh commented 3 years ago

After standing up the container using "$ docker run --rm --name stock -v $(pwd):/code -p 8050:8050 stock start.sh" and then pressing "ctrl + c" to exit out of the environment, the app still runs in the background. Is this the intended behavior?

gaborvecsei commented 3 years ago

The --rm should remove the container. If this does not work for you please, check your docker config/setup.

You can stop it with docker kill stock

gurashish1singh commented 3 years ago

I don't think its wise that people should edit their docker config/setup files. Maybe we should think of creating a bash script which stands up the container and then waits for user input to exit(should be a pretty easy bash script to create).

gaborvecsei commented 3 years ago

What I meant by that is that probably your setup is not correct. As you can see with --rm this should be automatic: https://docs.docker.com/engine/reference/run/#clean-up---rm