//Check if the container is running
docker ps -a
docker container stop {container-id}
systemctl stop docker.service
#(OR)
systemctl stop docker
# it will start docker
docker stop $(docker ps -q)
docker stop <id of the container>
docker container stop [CONTAINER]
// Chcek wether the container is running or not
docker ps
// Stop container by using either container id or name
docker stop <container id or name>
// Stop container based on seconds
docker stop <container id or name> -t <seconds>
docker stop <ContainerID>
ubuntu@node:~$ sudo systemctl stop docker
docker stop <Container_Name>
Example:$ docker stop de150daf2910
docker stop [OPTIONS] CONTAINER [CONTAINER...]