Docker icon

Docker

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

Image → Prune

AI-generated

Summary

Prune unused Docker images

Inputs

  • imagePruneDanglingOnly (required) — Whether to prune only unused untagged images

Output shape

an object summarizing the prune result

Returns a summary of deleted images; success is indicated by a 200 response, and the shape may include fields such as pruned count or error information

Examples

Example 1: Delete only dangling images

imagePruneDanglingOnly=true

Example 2: Delete all unused images

imagePruneDanglingOnly=false

Links

Discussion