public interface ListContainersCmd extends SyncDockerCmd<List<Container>>
Modifier and Type | Interface and Description |
---|---|
static interface |
ListContainersCmd.Exec |
Modifier and Type | Method and Description |
---|---|
String |
getBeforeId() |
Map<String,List<String>> |
getFilters() |
Integer |
getLimit() |
String |
getSinceId() |
Boolean |
hasShowAllEnabled() |
Boolean |
hasShowSizeEnabled() |
ListContainersCmd |
withBefore(String before) |
ListContainersCmd |
withExitcodeFilter(Integer exitcode) |
ListContainersCmd |
withLabelFilter(Map<String,String> labels) |
ListContainersCmd |
withLabelFilter(String... labels) |
ListContainersCmd |
withLimit(Integer limit) |
ListContainersCmd |
withShowAll(Boolean showAll) |
ListContainersCmd |
withShowSize(Boolean showSize) |
ListContainersCmd |
withSince(String since) |
ListContainersCmd |
withStatusFilter(String status) |
exec
@CheckForNull String getBeforeId()
@CheckForNull Map<String,List<String>> getFilters()
@CheckForNull Integer getLimit()
@CheckForNull String getSinceId()
@CheckForNull Boolean hasShowAllEnabled()
@CheckForNull Boolean hasShowSizeEnabled()
ListContainersCmd withBefore(String before)
before
- - Show only containers created before Id, include non-running ones.ListContainersCmd withExitcodeFilter(Integer exitcode)
exitcode
- - Show only containers that exited with the passed exitcode.ListContainersCmd withStatusFilter(String status)
status
- - Show only containers with the passed status (created|restarting|running|paused|exited).ListContainersCmd withLabelFilter(String... labels)
labels
- - Show only containers with the passed labels.ListContainersCmd withLabelFilter(Map<String,String> labels)
labels
- - Show only containers with the passed labels. Labels is a Map
that contains label keys and valuesListContainersCmd withLimit(Integer limit)
limit
- - Show `limit` last created containers, include non-running ones. There is no limit by default.ListContainersCmd withShowAll(Boolean showAll)
showAll
- - Show all containers. Only running containers are shown by default.ListContainersCmd withShowSize(Boolean showSize)
showSize
- - Show the containers sizes. This is false by default.ListContainersCmd withSince(String since)
since
- - Show only containers created since Id, include non-running ones.Copyright © 2017. All Rights Reserved.