public interface PruneCmd extends SyncDockerCmd<PruneResponse>
RemoteApiVersion#VERSION_1_25
Modifier and Type | Interface and Description |
---|---|
static interface |
PruneCmd.Exec |
Modifier and Type | Method and Description |
---|---|
PruneResponse |
exec() |
String |
getApiPath() |
Map<String,List<String>> |
getFilters() |
PruneType |
getPruneType() |
PruneCmd |
withDangling(Boolean dangling)
When set to true, prune only unused and untagged images.
|
PruneCmd |
withLabelFilter(String... label)
Prune containers with the specified labels
|
PruneCmd |
withPruneType(PruneType pruneType) |
PruneCmd |
withUntilFilter(String until)
Prune containers created before this timestamp
Meaningful only for CONTAINERS and IMAGES prune type
|
@CheckForNull Map<String,List<String>> getFilters()
PruneCmd withUntilFilter(String until)
until
- Can be Unix timestamps, date formatted timestamps,
or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.PruneCmd withDangling(Boolean dangling)
PruneCmd withLabelFilter(String... label)
PruneResponse exec()
exec
in interface SyncDockerCmd<PruneResponse>
Copyright © 2021. All rights reserved.