docker-client icon indicating copy to clipboard operation
docker-client copied to clipboard

Add `--cpus` options to a container

Open gabrielsvinha opened this issue 7 years ago • 3 comments

Changes the class HostConfig to receive the property cpus when creating a new container.

Add unit test to the specified parameters.

Solves #959

gabrielsvinha avatar Jun 03 '18 22:06 gabrielsvinha

Codecov Report

Merging #1034 into master will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1034   +/-   ##
=========================================
  Coverage     67.39%   67.39%           
  Complexity      774      774           
=========================================
  Files           176      176           
  Lines          3233     3233           
  Branches        367      367           
=========================================
  Hits           2179     2179           
  Misses          897      897           
  Partials        157      157

codecov-io avatar Jun 03 '18 22:06 codecov-io

@GabrielSVinha just wondering about the above.

davidxia avatar Sep 30 '18 13:09 davidxia

Can someone comment on this? There is a CpuCount, but is it really Windows only? It's located under the HostConfig.

rwmajor2 avatar Dec 12 '18 19:12 rwmajor2