Skip to content

Conversation

AlexeyRokhin
Copy link
Contributor

Hi.
I've added ability to set new cpu parameters (cpu_count, cpu_percent, cpus) for container.
Please check it.

Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
alex-dr and others added 14 commits April 19, 2017 14:31
requests.Response objects evaluate as falsy when the status_code
attribute is in the 400-500 range. Therefore we are assured that
prior to this change, APIError would show `is_server_error() == False`
when generated with a 500-level response and `is_client_error() == False`
when generated with a 400-level response. This is not desirable.

Added some seemingly dry (not DRY) unit tests to ensure nothing silly
slips back in here.

Signed-off-by: alex-dr <alex@datarobot.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Some cleanup in ContainerConfig + warning if volume_driver is provided (API>1.20)

Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Peter Slovak <peter.slovak@websupport.sk>
…els (float->int)

Signed-off-by: Peter Slovak <peter.slovak@websupport.sk>
The stdout argument name was repeated in the run method docstring. The second should be replaced by stderr.

Signed-off-by: Ewan Barr <ewan.d.barr@googlmail.com>
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants