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 authored and GitHub committed 2026-01-27 14:55:49 -08:00
1 parent a57527e4b0
commit 24cbed56b3
11 files changed
+202 -1

No files matched your search

+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)`