How to stop a running container in docker


 description

Quickly shut down the docker running container through a command line. In this example, we use the mysql container to demonstrate. Before shutting down, you can use docker ps to view the currently running container.

 command

docker stop mysql

 parameter

docker :  is an open source application container engine that allows developers to package their applications and dependencies into a portable image
stop :  stop one or more running containers

 result

mysql
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.