> For the complete documentation index, see [llms.txt](https://philipzheng.gitbook.io/docker_practice/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://philipzheng.gitbook.io/docker_practice/container/rm.md).

# 刪除

可以使用 `docker rm` 來刪除一個處於終止狀態的容器。 例如

```
$sudo docker rm  trusting_newton
trusting_newton
```

如果要刪除一個執行中的容器，可以新增 `-f` 參數。Docker 會發送 `SIGKILL` 訊號給容器。
