mirror of
https://github.com/apple/container.git
synced 2026-09-22 15:45:38 +00:00
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:
@@ -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)`
|
||||
|
||||
Reference in New Issue
Block a user