-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop docker container after closing kernel #10
Comments
I have the same issue. This is my kernel.json file.
Update: Not able to reproduce it anymore. Will investigate further |
The normal behaviour for a container when running in the background is to stop whenver the CMD/ENTRYPOINT command stops. In this case the ipykernel receives the shutdown command, after which it terminates and the docker should automatically terminate. For this project it works correctly most of the time, but in some cases the docker keeps running. I have yet to find a complete reproducible case, but will update if I find one. |
@vmenger @gogasca IIRC, back at the time I was developing the first release I had the same problem. Changing the default interrupt mode fixed the issue. I don't think this change was released, but it's merged to master (5ca4d06). BTW. I've just realized that the release I've put out on PyPI either disappeared or was never deployed properly in the first place. Fixing this as we speak. 1.0.1 with the change mentioned above is coming too. |
There you go. I have no idea why I left all of this without releasing it properly, sorry for that. |
Closing this one. If anyone has this same problem again - please make sure it's |
Currently, docker containers keep running when a kernel/notebook is closed. This can start eating up a lot of resources over time.
To investigate:
The text was updated successfully, but these errors were encountered: