How to stop running node in docker

后端 未结 8 1977
广开言路
广开言路 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:29

    A docker run should have gave you back the prompt, avoiding the need for CTRL+C, or closing the docker terminal.

    Once you log back in that terminal, a docker ps -a + docker stop should be enough to make your container exit (you still need to remove it before trying to launch it again)

提交回复
热议问题