Clean up Docker
pruneClean up Docker by removing stopped containers, dangling images, unused networks, volumes when enabled (data loss), and build cache, then report freed space. Confirm first: it cannot be undone.
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: confirm with the person first, naming what goes.
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 |