public interface ListContainersCmd extends SyncDockerCmd<List<Container>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ListContainersCmd.Exec |
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 withNameFilter(Collection<String> name)
name - - Show only containers that has the container's nameListContainersCmd withIdFilter(Collection<String> id)
id - - Show only containers that has the container's idListContainersCmd withAncestorFilter(Collection<String> ancestor)
ancestor - - Show only containers created from an image or a descendant.ListContainersCmd withVolumeFilter(Collection<String> volume)
volume - - Show only containers with volume name or mount point destinationListContainersCmd withNetworkFilter(Collection<String> network)
network - - Show only containers with network id or network nameListContainersCmd withExitedFilter(Integer exited)
exited - - Show only containers that exited with the passed exitcode.ListContainersCmd withStatusFilter(Collection<String> status)
status - - Show only containers with the passed status (created|restarting|running|paused|exited).ListContainersCmd withLabelFilter(Collection<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.ListContainersCmd withFilter(String filterName, Collection<String> filterValues)
filterName - filterValues - - Show only containers where the filter matches the given valuesCopyright © 2021. All rights reserved.