fixed memory_limit for docker api version >= 1.19

reviewable/pr18780/r1
Ilya Epifanov 9 years ago
parent d61fde42ef
commit d951172920

@ -1428,7 +1428,7 @@ class DockerManager(object):
if api_version < 1.19:
params['mem_limit'] = mem_limit
else:
params['host_config']['mem_limit'] = mem_limit
params['host_config']['Memory'] = mem_limit
def do_create(count, params):

Loading…
Cancel
Save