From d9511729208cdef60630a13d30bdf67008b40522 Mon Sep 17 00:00:00 2001 From: Ilya Epifanov Date: Sun, 16 Aug 2015 18:34:56 +0300 Subject: [PATCH] fixed memory_limit for docker api version >= 1.19 --- cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/docker/docker.py b/cloud/docker/docker.py index 1cf85843e0e..e045e2ce1fc 100644 --- a/cloud/docker/docker.py +++ b/cloud/docker/docker.py @@ -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):