How to stop running node in docker

后端 未结 8 1989
广开言路
广开言路 2021-02-13 18:02

I have just installed dockers and installed node. I am able to run a basic express site. My issue now is I can\'t stop it. Control-C is not doing anything.

Temporarily w

8条回答
  •  臣服心动
    2021-02-13 18:44

    If you just want to stop node without stopping the container, you could go inside the container and run:

    $ ps aux | grep node #to obtain process ID (value in second column)
    $ kill 
    

提交回复
热议问题