diff --git a/cloud/docker/docker.py b/cloud/docker/docker.py index e77951abf49..f8532659ecf 100644 --- a/cloud/docker/docker.py +++ b/cloud/docker/docker.py @@ -1008,7 +1008,7 @@ class DockerManager(object): except ValueError as e: self.module.fail_json(msg=str(e)) - actual_mem = container['Config']['Memory'] + actual_mem = container['HostConfig']['Memory'] if expected_mem and actual_mem != expected_mem: self.reload_reasons.append('memory ({0} => {1})'.format(actual_mem, expected_mem))