Tutorial
How to remove a Docker container
Erfahre in dieser Schritt-für-Schritt Anleitung, wie du in Docker einen Container entfernen kannst. Dazu gibst du einfach den Befehl
docker stop
und anschließend
docker rm
ein, gefolgt von der Container-ID oder dem Namen des Containers.
Follow these steps:
- Open the terminal or command line.
- Make sure that Docker is installed and running on your system.
- Run the command
docker ps
to view the currently running containers. - Find the container that you want to remove and note down its container ID or name.
- Run the command
docker stop
followed by the container ID or name to stop the container. - Run the command
docker rm
followed by the container ID or name to remove the container.
Example:
docker stop my_container
docker rm my_container