File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/main/java/com/github/dockerjava Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerRespons
179179 @ CheckForNull
180180 String getPidMode ();
181181
182+ @ CheckForNull
183+ String getCgroupParent ();
184+
182185 @ CheckForNull
183186 Boolean isTty ();
184187
@@ -402,6 +405,8 @@ public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerRespons
402405
403406 CreateContainerCmd withWorkingDir (String workingDir );
404407
408+ CreateContainerCmd withCgroupParent (String cgroupParent );
409+
405410 /**
406411 * Set the PID (Process) Namespace mode for the container, 'host': use the host's PID namespace inside the container
407412 */
Original file line number Diff line number Diff line change @@ -407,6 +407,11 @@ public String getPidMode() {
407407 return hostConfig .getPidMode ();
408408 }
409409
410+ @ Override
411+ public String getCgroupParent () {
412+ return hostConfig .getCgroupParent ();
413+ }
414+
410415 @ Override
411416 public String toString () {
412417 return new ToStringBuilder (this ).append ("create container " ).append (name != null ? "name=" + name + " " : "" )
@@ -871,6 +876,13 @@ public CreateContainerCmd withWorkingDir(String workingDir) {
871876 return this ;
872877 }
873878
879+ @ Override
880+ public CreateContainerCmd withCgroupParent (final String cgroupParent ) {
881+ checkNotNull (cgroupParent , "cgroupParent was not specified" );
882+ this .hostConfig .withCgroupParent (cgroupParent );
883+ return this ;
884+ }
885+
874886 @ Override
875887 public CreateContainerCmd withPidMode (String pidMode ) {
876888 checkNotNull (pidMode , "pidMode was not specified" );
You can’t perform that action at this time.
0 commit comments