File tree Expand file tree Collapse file tree
src/main/java/com/github/dockerjava/api/model Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments