Docker sq
Docker Fundamentals - Container Lifecycle

Stopping a Container

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

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