Skip to content

Commit 61f4e55

Browse files
authored
Add CgroupnsMode to HostConfig (#1808)
1 parent 2e7764d commit 61f4e55

File tree

1 file changed

+13
-0
lines changed
  • docker-java-api/src/main/java/com/github/dockerjava/api/model

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ public static HostConfig newHostConfig() {
292292
@JsonProperty("ConsoleSize")
293293
private List<Integer> consoleSize;
294294

295+
@JsonProperty("CgroupnsMode")
296+
private String cgroupnsMode;
297+
295298
@JsonIgnore
296299
public Bind[] getBinds() {
297300
return (binds == null) ? new Bind[0] : binds.getBinds();
@@ -1193,6 +1196,16 @@ public HostConfig withUsernsMode(String usernsMode) {
11931196
return this;
11941197
}
11951198

1199+
@CheckForNull
1200+
public String getCgroupnsMode() {
1201+
return cgroupnsMode;
1202+
}
1203+
1204+
public HostConfig withCgroupnsMode(String cgroupnsMode) {
1205+
this.cgroupnsMode = cgroupnsMode;
1206+
return this;
1207+
}
1208+
11961209
@CheckForNull
11971210
public Map<String, String> getSysctls() {
11981211
return sysctls;

0 commit comments

Comments
 (0)