Docker icon

Docker

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

Network → Prune

AI-generated

Summary

Prunes unused Docker networks, removing them from the Docker host.

Inputs

  • filters — Optional filter criteria to limit which networks are considered for pruning.

Output shape

an object containing an array of deleted network IDs

The response includes a "networks" field listing the IDs that were removed; if no networks match, the array is empty.

Examples

Example 1: Remove all unused networks older than a given timestamp

filters: {"until": {"minutes": 60}}

Example 2: Prune all dangling networks without additional filters

filters: null

Example 3: Prune networks with a specific label

filters: {"label": "project=test"}

Links

Discussion