How to stop a running container in docker
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.
docker stop mysql
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