Command
docker stop
Explanation
Sends SIGTERM followed by SIGKILL after grace period to stop containers gracefully.
Examples
Gracefully stop container
docker stop my_container
Stop all running containers
docker stop $(docker ps -q)
docker stop
Sends SIGTERM followed by SIGKILL after grace period to stop containers gracefully.
Gracefully stop container
docker stop my_container
Stop all running containers
docker stop $(docker ps -q)