prune

suspend fun prune(filters: Map<String, List<String>>? = null): Result<ContainerPruneResponse, ErrorResponse>

Delete unused containers

Return

Operation response on success, or the Docker error response. Transport failures and cancellation can throw.

Parameters

filters

Docker filter names mapped to values, for example mapOf("status" to listOf("running")) for listing, or mapOf("label" to listOf("app=worker")). Allowed keys depend on the operation; the SDK encodes the map as JSON and Docker validates it.