-
Notifications
You must be signed in to change notification settings - Fork 144
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
Bug: Docker containers not shutting down when closing GUI #521
Comments
Thanks for the feedback. This has indeed been an annoyance to me every once in a while. |
I will work on this @jamaljsr |
Sounds good. Thank you! |
HI @jamaljsr, I am having a blocker. I worked on a solution for this issue but I noticed that the test failed. My implementation involves leveraging electron's 'before-quit' when a user exits polar and sending a message to the renderer process from main process. Now the blocker I have is that I imported I tried a couple of solutions I found online including adding a preload.js script and exposing ipcRenderer through contextBridge. None seems to be working. So I would appreciate it if you could advise me on how I can access ipcRendrer or point me to resources. I think that would really help. |
Hey @Abdulkbk, have you tried mocking the Another approach that may work is to use Something like this:
|
Alright. I would mock |
I mocked ipcRenderer and it worked @jamaljsr. I've submitted a PR. I'll wait for your review and feedback. Thank you |
Describe the bug
When exiting out of the application and then running
docker ps
it looks like the docker containers do not shut down and continue running after the GUI has been closed.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Docker containers get shutdown when GUI is closed.
Desktop (please complete the following information):
Additional context
If I have missed something please let me know.
The text was updated successfully, but these errors were encountered: