Clean up Docker
pruneRemove stopped containers, dangling images, unused networks, volumes, and build cache to reclaim disk space; irreversible and confirmed first.
Instructions
Remove what isn't in use: stopped containers, dangling images (all unused ones with allImages), unused networks, unused volumes (only when volumes is true: their data is gone) and the build cache. Says how much space it freed. Can't be undone. The server asks the person to confirm it, naming what goes; if they say no, nothing is done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | Yes | everything: containers, networks, dangling images and build cache (volumes only with volumes: true) | |
| volumes | No | everything: also unused volumes and their data | |
| allImages | No | Images: every unused one, not only the dangling ones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| truncated | Yes |