File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed
docker-java/src/test/java/com/github/dockerjava/cmd
docker-java-api/src/main/java/com/github/dockerjava/api/model Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,9 @@ public class Info extends DockerObject implements Serializable {
235
235
@ JsonProperty ("SecurityOptions" )
236
236
private List <String > securityOptions ;
237
237
238
+ @ JsonProperty ("Runtimes" )
239
+ private Map <String , RuntimeInfo > runtimes ;
240
+
238
241
/**
239
242
* @see #architecture
240
243
*/
@@ -1070,4 +1073,11 @@ public Info withIsolation(String isolation) {
1070
1073
public List <String > getSecurityOptions () {
1071
1074
return securityOptions ;
1072
1075
}
1076
+
1077
+ /**
1078
+ * @see #runtimes
1079
+ */
1080
+ public Map <String , RuntimeInfo > getRuntimes () {
1081
+ return runtimes ;
1082
+ }
1073
1083
}
Original file line number Diff line number Diff line change
1
+ package com .github .dockerjava .api .model ;
2
+
3
+ import lombok .EqualsAndHashCode ;
4
+ import lombok .ToString ;
5
+
6
+ import java .io .Serializable ;
7
+
8
+ @ EqualsAndHashCode
9
+ @ ToString
10
+ public class RuntimeInfo extends DockerObject implements Serializable {
11
+ private static final long serialVersionUID = 1L ;
12
+
13
+ private String path ;
14
+
15
+ public String getPath () {
16
+ return path ;
17
+ }
18
+
19
+ public void setPath (String path ) {
20
+ this .path = path ;
21
+ }
22
+
23
+ }
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public void infoTest() throws DockerException {
48
48
assertThat (dockerInfo .getImages (), notNullValue ());
49
49
assertThat (dockerInfo .getImages (), greaterThan (0 ));
50
50
assertThat (dockerInfo .getDebug (), notNullValue ());
51
+ assertThat (dockerInfo .getRuntimes (), notNullValue ());
51
52
52
53
if (isNotSwarm (dockerClient )) {
53
54
assertThat (dockerInfo .getNFd (), greaterThan (0 ));
You can’t perform that action at this time.
0 commit comments