Package org.mandas.docker.client
Class DockerClient.ListContainersParam
- java.lang.Object
-
- org.mandas.docker.client.DockerClient.Param
-
- org.mandas.docker.client.DockerClient.ListContainersParam
-
- Direct Known Subclasses:
DockerClient.ListContainersFilterParam
- Enclosing interface:
- DockerClient
public static class DockerClient.ListContainersParam extends DockerClient.Param
Parameters forDockerClient.listContainers(ListContainersParam...)
-
-
Constructor Summary
Constructors Constructor Description ListContainersParam(String name, String value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DockerClient.ListContainersParamallContainers()Show all containers.static DockerClient.ListContainersParamallContainers(boolean all)Show all containers.static DockerClient.ListContainersParamcontainersCreatedBefore(String id)Show only containers created before id, include non-running ones.static DockerClient.ListContainersParamcontainersCreatedSince(String id)Show only containers created since id, include non-running ones.static DockerClient.ListContainersParamcreate(String name, String value)Create a custom parameter.static DockerClient.ListContainersParamfilter(String key, String value)Create a "filters" query param from a key/value pair.static DockerClient.ListContainersParamlimitContainers(Integer limit)Showlimitlast created containers, include non-running ones.static DockerClient.ListContainersParamwithContainerSizes(Boolean size)Show the containers sizes.static DockerClient.ListContainersParamwithExitStatus(int exitStatus)Show exited containers with given exit status.static DockerClient.ListContainersParamwithLabel(String label)Show containers with a label.static DockerClient.ListContainersParamwithLabel(String label, String value)Show containers with a label value.static DockerClient.ListContainersParamwithStatusCreated()Show created containers.static DockerClient.ListContainersParamwithStatusExited()Show exited containers.static DockerClient.ListContainersParamwithStatusPaused()Show paused containers.static DockerClient.ListContainersParamwithStatusRestarting()Show restarting containers.static DockerClient.ListContainersParamwithStatusRunning()Show running containers.-
Methods inherited from class org.mandas.docker.client.DockerClient.Param
equals, hashCode, name, value
-
-
-
-
Method Detail
-
create
public static DockerClient.ListContainersParam create(String name, String value)
Create a custom parameter.- Parameters:
name- custom namevalue- custom value- Returns:
- ListContainersParam
-
filter
public static DockerClient.ListContainersParam filter(String key, String value)
Create a "filters" query param from a key/value pair.- Parameters:
key- Type of filtervalue- Value of filter- Returns:
- ListContainersParam
-
allContainers
public static DockerClient.ListContainersParam allContainers()
Show all containers. Only running containers are shown by default- Returns:
- ListContainersParam
-
allContainers
public static DockerClient.ListContainersParam allContainers(boolean all)
Show all containers. Only running containers are shown by default- Parameters:
all- Whether to show all containers- Returns:
- ListContainersParam
-
limitContainers
public static DockerClient.ListContainersParam limitContainers(Integer limit)
Showlimitlast created containers, include non-running ones.- Parameters:
limit- Limit for number of containers to list- Returns:
- ListContainersParam
-
containersCreatedSince
public static DockerClient.ListContainersParam containersCreatedSince(String id)
Show only containers created since id, include non-running ones.- Parameters:
id- container ID- Returns:
- ListContainersParam
-
containersCreatedBefore
public static DockerClient.ListContainersParam containersCreatedBefore(String id)
Show only containers created before id, include non-running ones.- Parameters:
id- container ID- Returns:
- ListContainersParam
-
withContainerSizes
public static DockerClient.ListContainersParam withContainerSizes(Boolean size)
Show the containers sizes.- Parameters:
size- Whether to show container sizes- Returns:
- ListContainersParam
-
withExitStatus
public static DockerClient.ListContainersParam withExitStatus(int exitStatus)
Show exited containers with given exit status.- Parameters:
exitStatus- Integer exit status- Returns:
- ListContainersParam
-
withStatusCreated
public static DockerClient.ListContainersParam withStatusCreated()
Show created containers.- Returns:
- ListContainersParam
-
withStatusRestarting
public static DockerClient.ListContainersParam withStatusRestarting()
Show restarting containers.- Returns:
- ListContainersParam
-
withStatusRunning
public static DockerClient.ListContainersParam withStatusRunning()
Show running containers.- Returns:
- ListContainersParam
-
withStatusPaused
public static DockerClient.ListContainersParam withStatusPaused()
Show paused containers.- Returns:
- ListContainersParam
-
withStatusExited
public static DockerClient.ListContainersParam withStatusExited()
Show exited containers.- Returns:
- ListContainersParam
-
withLabel
public static DockerClient.ListContainersParam withLabel(String label, String value)
Show containers with a label value.- Parameters:
label- The label to filter onvalue- The value of the label- Returns:
- ListContainersParam
-
withLabel
public static DockerClient.ListContainersParam withLabel(String label)
Show containers with a label.- Parameters:
label- The label to filter on- Returns:
- ListContainersParam
-
-