mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 11:43:10 +00:00
fixed memory_limit for docker api version >= 1.19
This commit is contained in:
@@ -1446,7 +1446,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):
|
||||
|
||||
Reference in New Issue
Block a user