public class PruneCmdImpl extends AbstrDockerCmd<PruneCmd,PruneResponse> implements PruneCmd
PruneCmd.Exec
execution
Constructor and Description |
---|
PruneCmdImpl(PruneCmd.Exec exec,
PruneType pruneType) |
Modifier and Type | Method and Description |
---|---|
PruneResponse |
exec() |
java.lang.String |
getApiPath() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getFilters() |
PruneType |
getPruneType() |
PruneCmd |
withDangling(java.lang.Boolean dangling)
When set to true, prune only unused and untagged images.
|
PruneCmd |
withLabelFilter(java.lang.String... labels)
Prune containers with the specified labels
|
PruneCmd |
withPruneType(PruneType pruneType) |
PruneCmd |
withUntilFilter(java.lang.String until)
Prune containers created before this timestamp
Meaningful only for CONTAINERS and IMAGES prune type
|
close, registryAuth, toString
public PruneCmdImpl(PruneCmd.Exec exec, PruneType pruneType)
@Nonnull public PruneType getPruneType()
getPruneType
in interface PruneCmd
@Nonnull public java.lang.String getApiPath()
getApiPath
in interface PruneCmd
@CheckForNull public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getFilters()
getFilters
in interface PruneCmd
public PruneCmd withPruneType(PruneType pruneType)
withPruneType
in interface PruneCmd
public PruneCmd withDangling(java.lang.Boolean dangling)
PruneCmd
withDangling
in interface PruneCmd
public PruneCmd withUntilFilter(java.lang.String until)
PruneCmd
withUntilFilter
in interface PruneCmd
until
- Can be Unix timestamps, date formatted timestamps,
or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.public PruneCmd withLabelFilter(java.lang.String... labels)
PruneCmd
withLabelFilter
in interface PruneCmd
public PruneResponse exec()
exec
in interface PruneCmd
exec
in interface SyncDockerCmd<PruneResponse>
exec
in class AbstrDockerCmd<PruneCmd,PruneResponse>
Copyright © 2019. All Rights Reserved.