|
3 | 3 | import com.github.dockerjava.api.NotFoundException; |
4 | 4 | import com.github.dockerjava.api.NotModifiedException; |
5 | 5 | import com.github.dockerjava.api.model.Bind; |
| 6 | +import com.github.dockerjava.api.model.Capability; |
6 | 7 | import com.github.dockerjava.api.model.Device; |
7 | 8 | import com.github.dockerjava.api.model.Link; |
8 | 9 | import com.github.dockerjava.api.model.LxcConf; |
@@ -41,9 +42,9 @@ public interface StartContainerCmd extends DockerCmd<Void> { |
41 | 42 |
|
42 | 43 | public RestartPolicy getRestartPolicy(); |
43 | 44 |
|
44 | | - public String[] getCapAdd(); |
| 45 | + public Capability[] getCapAdd(); |
45 | 46 |
|
46 | | - public String[] getCapDrop(); |
| 47 | + public Capability[] getCapDrop(); |
47 | 48 |
|
48 | 49 | public StartContainerCmd withBinds(Bind... binds); |
49 | 50 |
|
@@ -115,18 +116,18 @@ public interface StartContainerCmd extends DockerCmd<Void> { |
115 | 116 | /** |
116 | 117 | * Add linux <a |
117 | 118 | * href="http://man7.org/linux/man-pages/man7/capabilities.7.html">kernel |
118 | | - * capability</a> to the container. For example: adding capability "MKNOD" |
| 119 | + * capability</a> to the container. For example: adding {@link Capability#MKNOD} |
119 | 120 | * allows the container to create special files using the 'mknod' command. |
120 | 121 | */ |
121 | | - public StartContainerCmd withCapAdd(String... capAdd); |
| 122 | + public StartContainerCmd withCapAdd(Capability... capAdd); |
122 | 123 |
|
123 | 124 | /** |
124 | 125 | * Drop linux <a |
125 | 126 | * href="http://man7.org/linux/man-pages/man7/capabilities.7.html">kernel |
126 | | - * capability</a> from the container. For example: dropping capability |
127 | | - * "CHOWN" prevents the container from changing the owner of any files. |
| 127 | + * capability</a> from the container. For example: dropping {@link Capability#CHOWN} |
| 128 | + * prevents the container from changing the owner of any files. |
128 | 129 | */ |
129 | | - public StartContainerCmd withCapDrop(String... capDrop); |
| 130 | + public StartContainerCmd withCapDrop(Capability... capDrop); |
130 | 131 |
|
131 | 132 | /** |
132 | 133 | * @throws NotFoundException |
|
0 commit comments