Home > Back-end >  How to stop Image in docker
How to stop Image in docker

Time:09-27

I tried ctrl c, ctrl d, ctrl qp But, I am still unable to terminate the running Image or get out of the terminal

Terminal

CodePudding user response:

You can only stop containers, but not images. Explained in this question.

To stop the container:

  • Get the container id using docker ps
  • Stop it using docker container stop <id>

Eventually you want to kill it using docker kill <id> (kill also like in send a signal)

  • Related