Implement container prune (#904)

- Fixed #892.
- By contrast with `rm`, `prune` should display
  the amount of reclaimed storage, so added code
  to retrieve it.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2026-01-27 14:55:49 -08:00
committed by GitHub
parent a57527e4b0
commit 24cbed56b3
11 changed files with 202 additions and 1 deletions
+14
View File
@@ -414,6 +414,20 @@ container stats --no-stream web
container stats --format json --no-stream web
```
### `container prune`
Removes stopped containers to reclaim disk space. The command outputs the amount of space freed after deletion.
**Usage**
```bash
container prune [--debug]
```
**Options**
No options.
## Image Management
### `container image list (ls)`