Docker icon

Docker

Manage Docker containers, images, networks, volumes, and daemon metadata with Unix socket, TCP, TLS, or SSH connections

Volume → Prune

AI-generated

Summary

Prune Docker volumes, optionally including named volumes

Inputs

  • Include Named Volumes (required) — Boolean flag that when true includes named volumes in the prune operation; default false.

Output shape

list of volume identifiers that were pruned

May contain an error field for any volumes that could not be removed; otherwise empty.

Examples

Example 1: Prune only anonymous volumes

Leave Include Named Volumes false (default) to remove only unused local volumes.

Example 2: Prune both anonymous and named volumes

Set Include Named Volumes to true to also remove named volumes that are not in use.

Links

Discussion