forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathListContainersCmd.java
More file actions
110 lines (90 loc) · 3.13 KB
/
Copy pathListContainersCmd.java
File metadata and controls
110 lines (90 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.model.Container;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* List containers
*
*/
@DockerCommand
public interface ListContainersCmd extends ListContainers, SyncDockerCmd<List<Container>> {
/**
* @param before
* - Show only containers created before Id, include non-running ones.
*/
ListContainersCmd withBefore(String before);
/**
* @param name
* - Show only containers that has the container's name
*/
ListContainersCmd withNameFilter(Collection<String> name);
/**
* @param id
* - Show only containers that has the container's id
*/
ListContainersCmd withIdFilter(Collection<String> id);
/**
* @param ancestor
* - Show only containers created from an image or a descendant.
*/
ListContainersCmd withAncestorFilter(Collection<String> ancestor);
/**
* @param volume
* - Show only containers with volume name or mount point destination
*/
ListContainersCmd withVolumeFilter(Collection<String> volume);
/**
* @param network
* - Show only containers with network id or network name
*/
ListContainersCmd withNetworkFilter(Collection<String> network);
/**
* @param exited
* - Show only containers that exited with the passed exitcode.
*/
ListContainersCmd withExitedFilter(Integer exited);
/**
* @param status
* - Show only containers with the passed status (created|restarting|running|paused|exited).
*/
ListContainersCmd withStatusFilter(Collection<String> status);
/**
* @param labels
* - Show only containers with the passed labels.
*/
ListContainersCmd withLabelFilter(Collection<String> labels);
/**
* @param labels
* - Show only containers with the passed labels. Labels is a {@link Map} that contains label keys and values
*/
ListContainersCmd withLabelFilter(Map<String, String> labels);
/**
* @param limit
* - Show `limit` last created containers, include non-running ones. There is no limit by default.
*/
ListContainersCmd withLimit(Integer limit);
/**
* @param showAll
* - Show all containers. Only running containers are shown by default.
*/
ListContainersCmd withShowAll(Boolean showAll);
/**
* @param showSize
* - Show the containers sizes. This is false by default.
*/
ListContainersCmd withShowSize(Boolean showSize);
/**
* @param since
* - Show only containers created since Id, include non-running ones.
*/
ListContainersCmd withSince(String since);
/**
* @param filterName
* @param filterValues
* - Show only containers where the filter matches the given values
*/
ListContainersCmd withFilter(String filterName, Collection<String> filterValues);
interface Exec extends DockerCmdSyncExec<ListContainersCmd, List<Container>> {
}
}