Kaydet (Commit) 8261a917 authored tarafından Joffrey F's avatar Joffrey F

Merge pull request #592 from docker/cpusetcpus

Set 'CpusetCpus' with the value of the cpuset param in create_container
......@@ -577,6 +577,7 @@ def create_container_config(
'Entrypoint': entrypoint,
'CpuShares': cpu_shares,
'Cpuset': cpuset,
'CpusetCpus': cpuset,
'WorkingDir': working_dir,
'MemorySwap': memswap_limit,
'HostConfig': host_config,
......
......@@ -489,6 +489,7 @@ class DockerClientTest(Cleanup, base.BaseTestCase):
"StdinOnce": false,
"NetworkDisabled": false,
"Cpuset": "0,1",
"CpusetCpus": "0,1",
"MemorySwap": 0}'''))
self.assertEqual(args[1]['headers'],
{'Content-Type': 'application/json'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment