public static class DockerClient.ListContainersParam extends Object
DockerClient.listContainers(ListContainersParam...)| Constructor and Description |
|---|
ListContainersParam(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static DockerClient.ListContainersParam |
allContainers()
Show all containers.
|
static DockerClient.ListContainersParam |
allContainers(boolean all)
Show all containers.
|
static DockerClient.ListContainersParam |
containersCreatedBefore(String id)
Show only containers created before id, include non-running ones.
|
static DockerClient.ListContainersParam |
containersCreatedSince(String id)
Show only containers created since id, include non-running ones.
|
static DockerClient.ListContainersParam |
create(String name,
String value)
Create a custom parameter.
|
static DockerClient.ListContainersParam |
exitedContainers()
Deprecated.
Replaced by
withStatusExited() |
static DockerClient.ListContainersParam |
filter(String key,
String value)
Create a "filters" query param from a key/value pair
|
static DockerClient.ListContainersParam |
limitContainers(Integer limit)
Show
limit last created containers, include non-running ones. |
String |
name()
Parameter name.
|
String |
value()
Parameter value.
|
static DockerClient.ListContainersParam |
withContainerSizes(Boolean size)
Show the containers sizes.
|
static DockerClient.ListContainersParam |
withExitStatus(int exitStatus)
Show exited containers with given exit status.
|
static DockerClient.ListContainersParam |
withLabel(String label)
Show containers with a label.
|
static DockerClient.ListContainersParam |
withLabel(String label,
String value)
Show containers with a label value.
|
static DockerClient.ListContainersParam |
withStatusCreated()
Show created containers.
|
static DockerClient.ListContainersParam |
withStatusExited()
Show exited containers.
|
static DockerClient.ListContainersParam |
withStatusPaused()
Show paused containers.
|
static DockerClient.ListContainersParam |
withStatusRestarting()
Show restarting containers.
|
static DockerClient.ListContainersParam |
withStatusRunning()
Show running containers.
|
public static DockerClient.ListContainersParam create(String name, String value)
name - custom namevalue - custom valuepublic static DockerClient.ListContainersParam filter(String key, String value)
key - Type of filtervalue - Value of filterpublic String name()
public String value()
public static DockerClient.ListContainersParam allContainers()
public static DockerClient.ListContainersParam allContainers(boolean all)
all - Whether to show all containerspublic static DockerClient.ListContainersParam limitContainers(Integer limit)
limit last created containers, include non-running ones.limit - Limit for number of containers to listpublic static DockerClient.ListContainersParam containersCreatedSince(String id)
id - container IDpublic static DockerClient.ListContainersParam containersCreatedBefore(String id)
id - container IDpublic static DockerClient.ListContainersParam withContainerSizes(Boolean size)
size - Whether to show container sizespublic static DockerClient.ListContainersParam withExitStatus(int exitStatus)
exitStatus - Integer exit statuspublic static DockerClient.ListContainersParam withStatusCreated()
public static DockerClient.ListContainersParam withStatusRestarting()
public static DockerClient.ListContainersParam withStatusRunning()
public static DockerClient.ListContainersParam withStatusPaused()
public static DockerClient.ListContainersParam withStatusExited()
@Deprecated public static DockerClient.ListContainersParam exitedContainers()
withStatusExited()public static DockerClient.ListContainersParam withLabel(String label, String value)
label - The label to filter onvalue - The value of the labelpublic static DockerClient.ListContainersParam withLabel(String label)
label - The label to filter onCopyright © 2016. All rights reserved.