We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Stop a Container

Okay, now you know how to start a new instance of a container from an image... but how do you stop it? There are two primary ways:

  • docker stop: This stops the container by issuing a SIGTERM signal to the container. You'll typically want to use docker stop.
  • docker kill: This stops the container by issuing a SIGKILL signal to the container. This is a more forceful way to stop a container, and should be used as a last resort.

Assignment

Run and submit the CLI tests.