linuxcentosdockerjupyter-notebook

Docker not responding to CTRL+C in terminal


Having an issue with Docker at the moment; I'm using it to run an image that launches an ipython notebook on startup. I'm looking to make some edits to ipython notebook itself, so I need to close it after launch.

However, hitting CTRL+C in the terminal just inputs "^C" as a string. There seems to be no real way of using CTRL+C to actually close the ipython notebook instance.

Would anyone have any clues as to what can cause this, or know of any solutions for it?


Solution

  • This post proposes CTRL-Z as a workaround for sending the process to background and then killing the process by its process id: Cannot kill Python script with Ctrl-C

    Possible problems:

    Proposed Solution: