having issue docker @ moment; i'm using run image launches ipython notebook on startup. i'm looking make edits ipython notebook itself, need close after launch.
however, hitting ctrl+c in terminal inputs "^c" string. there seems no real way of using ctrl+c close ipython notebook instance.
would have clues can cause this, or know of solutions it?
this post proposes ctrl-z workaround sending process background , killing process process id: cannot kill python script ctrl-c
possible problems:
the program catches ctrl-c , nothing, unlikely.
there background processes not managed correctly. main process receives signal , sub-processes hang. what's happening.
proposed solution:
check programs documentation on how it's started , stopped. ctrl-c seems not proper way.
wrap program docker-entrypoint.sh bash script blocks container process , able catch ctrl-c. bash example should help: https://rimuhosting.com/knowledgebase/linux/misc/trapping-ctrl-c-in-bash
after catching ctrl-c invoke proper shutdown method ipython notebook.
Comments
Post a Comment