Command

Docker Kill a Container Command

The Docker command to kill a container is docker kill.

Quick Answer

Command
docker kill
DockerCommand

Kill a Container

Type this command
docker kill

Ends a container immediately with no chance to clean up.

Learn More

How to kill a container in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker kill, replace any placeholders, and run it.

Docker Kill a Container Command

Run docker kill.

Related Commands

Frequently asked questions

What is the Docker command to kill a container?

Run docker kill.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify