Stopping a Container
It will not always work to stop a container with
ctrl-d. Instead, run
$ docker container stop [container name].
This command sends a
SIGTERM command to terminate the container. If the container does not stop after a grace period, Docker will kill the process with
You can kill a container instantly by calling
$ docker container kill [container name].