mirror of https://github.com/docker/docker-py.git
Merge pull request #592 from docker/cpusetcpus
Set 'CpusetCpus' with the value of the cpuset param in create_container
This commit is contained in:
commit
8261a9175e
|
@ -577,6 +577,7 @@ def create_container_config(
|
||||||
'Entrypoint': entrypoint,
|
'Entrypoint': entrypoint,
|
||||||
'CpuShares': cpu_shares,
|
'CpuShares': cpu_shares,
|
||||||
'Cpuset': cpuset,
|
'Cpuset': cpuset,
|
||||||
|
'CpusetCpus': cpuset,
|
||||||
'WorkingDir': working_dir,
|
'WorkingDir': working_dir,
|
||||||
'MemorySwap': memswap_limit,
|
'MemorySwap': memswap_limit,
|
||||||
'HostConfig': host_config,
|
'HostConfig': host_config,
|
||||||
|
|
|
@ -489,6 +489,7 @@ class DockerClientTest(Cleanup, base.BaseTestCase):
|
||||||
"StdinOnce": false,
|
"StdinOnce": false,
|
||||||
"NetworkDisabled": false,
|
"NetworkDisabled": false,
|
||||||
"Cpuset": "0,1",
|
"Cpuset": "0,1",
|
||||||
|
"CpusetCpus": "0,1",
|
||||||
"MemorySwap": 0}'''))
|
"MemorySwap": 0}'''))
|
||||||
self.assertEqual(args[1]['headers'],
|
self.assertEqual(args[1]['headers'],
|
||||||
{'Content-Type': 'application/json'})
|
{'Content-Type': 'application/json'})
|
||||||
|
|
Loading…
Reference in New Issue