Docker sq
Docker Fundamentals - Container Lifecycle

Stopping a Container

PRO
Outline

Stopping a Container

It will not always work to stop a container with ctrl+c or 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 SIGKILL.

You can kill a container instantly by calling $ docker container kill [container name].

 

I finished! On to the next chapter