@@ -55,6 +55,9 @@ public class CreateContainerCmdImpl extends AbstrDockerCmd<CreateContainerCmd, C
5555 @ JsonProperty ("CpuShares" )
5656 private int cpuShares = 0 ;
5757
58+ @ JsonProperty ("CpuPeriod" )
59+ private Integer cpuPeriod ;
60+
5861 @ JsonProperty ("Cpuset" )
5962 private String cpuset ;
6063
@@ -112,6 +115,15 @@ public class CreateContainerCmdImpl extends AbstrDockerCmd<CreateContainerCmd, C
112115 @ JsonProperty ("Labels" )
113116 private Map <String , String > labels ;
114117
118+ @ JsonProperty ("CpusetMems" )
119+ private String cpusetMems ;
120+
121+ @ JsonProperty ("BlkioWeight" )
122+ private Integer blkioWeight ;
123+
124+ @ JsonProperty ("OomKillDisable" )
125+ private Boolean oomKillDisable ;
126+
115127 public CreateContainerCmdImpl (CreateContainerCmd .Exec exec , String image ) {
116128 super (exec );
117129 checkNotNull (image , "image was not specified" );
@@ -160,6 +172,26 @@ public int getCpuShares() {
160172 return cpuShares ;
161173 }
162174
175+ @ Override
176+ public Integer getCpuPeriod () {
177+ return cpuPeriod ;
178+ }
179+
180+ @ Override
181+ public String getCpusetMems () {
182+ return cpusetMems ;
183+ }
184+
185+ @ Override
186+ public Integer getBlkioWeight () {
187+ return blkioWeight ;
188+ }
189+
190+ @ Override
191+ public Boolean isOomKillDisable () {
192+ return oomKillDisable ;
193+ }
194+
163195 @ Override
164196 @ JsonIgnore
165197 public Device [] getDevices () {
@@ -409,6 +441,30 @@ public CreateContainerCmdImpl withCpuShares(int cpuShares) {
409441 return this ;
410442 }
411443
444+ @ Override
445+ public CreateContainerCmd withCpuPeriod (Integer cpuPeriod ) {
446+ this .cpuPeriod = cpuPeriod ;
447+ return this ;
448+ }
449+
450+ @ Override
451+ public CreateContainerCmd withCpusetMems (String cpusetMems ) {
452+ this .cpusetMems = cpusetMems ;
453+ return null ;
454+ }
455+
456+ @ Override
457+ public CreateContainerCmd withBlkioWeight (Integer blkioWeight ) {
458+ this .blkioWeight = blkioWeight ;
459+ return null ;
460+ }
461+
462+ @ Override
463+ public CreateContainerCmd withOomKillDisable (Boolean oomKillDisable ) {
464+ this .oomKillDisable = oomKillDisable ;
465+ return null ;
466+ }
467+
412468 @ Override
413469 public CreateContainerCmd withDevices (Device ... devices ) {
414470 this .hostConfig .setDevices (devices );
0 commit comments