see docker stop code example
Example 1: how to get list of docker containers
1. docker container ls -a
2. docker ps -a
Example 2: stop docker container
//Check if the container is running
docker ps -a
docker container stop {container-id}
1. docker container ls -a
2. docker ps -a
//Check if the container is running
docker ps -a
docker container stop {container-id}