You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run a docker container along with a node.js server, and I would like to stop the container when the user stops the node.js server script.
I'm trying to run a docker container along with a node.js server, and I would like to stop the container when the user stops the node.js server script.
Unfortunately Docker doesn't properly shuts down the container when CTRL+C is pressed, even though it does it when I run the docker command directly.
Would it be possible to add a
--teardown
option that allows to specify a script to run when the process is interrupted (CTRL+C is pressed)?The text was updated successfully, but these errors were encountered: