If you want to stop a docker container here's the command to do it.
docker container stop CONTAINER_ID
The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL. This will stop a running container.
If you want to restart a Docker container then you need to use the following command
docker container restart CONTAINER_ID
This would restart the container.