Skip to main content

prune_system

Function prune_system 

Source
pub fn prune_system(older_than: Option<&str>) -> Result<String>
Expand description

Removes stopped containers, unused networks/images, and build cache.

Docker volumes are intentionally never passed to prune.

ยงErrors

Returns an error when Docker is missing, unavailable, or exits unsuccessfully.