Switch to _cap_ver_req and add cpu_set to create_containers

This commit is contained in:
Daniel Kerwin 2015-06-29 22:15:25 +02:00 committed by Matt Clay
parent 861d260b6c
commit 3a68101fa3

View file

@ -555,6 +555,7 @@ class DockerManager(object):
'pid': ((1, 0, 0), '1.17'),
'log_driver': ((1, 2, 0), '1.18'),
'host_config': ((0, 7, 0), '1.15'),
'cpu_set': ((0, 6, 0), '1.14'),
# Clientside only
'insecure_registry': ((0, 5, 0), '0.0')
}
@ -1376,6 +1377,7 @@ class DockerManager(object):
'tty': self.module.params.get('tty'),
'volumes_from': self.module.params.get('volumes_from'),
'dns': self.module.params.get('dns'),
'cpuset': self.module.params.get('cpu_set'),
'host_config': self.create_host_config(),
'user': self.module.params.get('docker_user'),
}