Forrest logo
back to the docker tool

docker:tldr:00d67

docker: Remove a stopped container.
$ docker rm ${container_name}
try on your machine

The command "docker rm ${container_name}" is used to remove a Docker container.

Here, "${container_name}" is a placeholder for the actual name of the container you want to remove. You need to replace it with the actual name of the container.

When you execute this command, Docker will attempt to stop and remove the specified container. If the container is currently running, it will be stopped before being removed.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • Delete single docker container?
back to the docker tool