Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (2.3k points)

I am running a node app using docker such as below:

docker run -p 4500:4500 my_node_app

It started the pm2 in no-daemon mode.

I have tried to end this container a lot of times, used CTRL+C, used docker stop my_node_app in a different terminal, but none of the methods worked. 

Some help on this would be appreciated.

1 Answer

0 votes
by (6.9k points)

First list down all the containers currently running using the belwo commands:

$ docker ps

Once you find the container you wish to remove, copy  its CONTAINER ID or NAME and then just execute the command given below:

 $ docker stop <container_id>

Hope this helps :)


Hey there! looking to get trained in docker by docker industry veterans ? try out docker training course.  

Browse Categories

...