Skip to content

Commit 2ac6601

Browse files
committed
add runtime field
1 parent f6dfe3e commit 2ac6601

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

src/main/java/com/github/dockerjava/api/model/HostConfig.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ public class HostConfig implements Serializable {
200200
@JsonProperty("PidsLimit")
201201
private Long pidsLimit;
202202

203+
/**
204+
* @since ~{@link RemoteApiVersion#VERSION_1_30}
205+
*/
206+
@JsonProperty("Runtime")
207+
private String runtime;
203208

204209
@JsonIgnore
205210
public Bind[] getBinds() {
@@ -438,6 +443,10 @@ public boolean isUserDefinedNetwork() {
438443
return networkMode != null && !PREDEFINED_NETWORKS.contains(networkMode) && !networkMode.startsWith("container:");
439444
}
440445

446+
public String getRuntime() {
447+
return runtime;
448+
}
449+
441450
@JsonIgnore
442451
public void setBinds(Bind... binds) {
443452
this.binds = new Binds(binds);
@@ -816,6 +825,11 @@ public HostConfig withPidsLimit(Long pidsLimit) {
816825
this.pidsLimit = pidsLimit;
817826
return this;
818827
}
828+
829+
public HostConfig withRuntime(String runtime) {
830+
this.runtime = runtime;
831+
return this;
832+
}
819833
// end of auto-generated
820834

821835
@Override

src/main/java/com/github/dockerjava/api/model/TaskSpec.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public class TaskSpec implements Serializable {
5656
@JsonProperty("ForceUpdate")
5757
private Integer forceUpdate;
5858

59+
/**
60+
* @since 1.30
61+
*/
62+
@JsonProperty("Runtime")
63+
private String runtime;
64+
5965
/**
6066
* @see #containerSpec
6167
*/
@@ -120,6 +126,15 @@ public TaskSpec withPlacement(ServicePlacement placement) {
120126
return this;
121127
}
122128

129+
public String getRuntime() {
130+
return runtime;
131+
}
132+
133+
public TaskSpec withRuntime(String runtime) {
134+
this.runtime = runtime;
135+
return this;
136+
}
137+
123138
/**
124139
* @see #logDriver
125140
*/

0 commit comments

Comments
 (0)