From f4fdbab41c47dcdd99c2af833fc08c4faa827d94 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 3 Jul 2023 17:35:34 +0800 Subject: [PATCH] Update index.py --- plugins/docker/index.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/docker/index.py b/plugins/docker/index.py index e7f6e971e..4ce0397e5 100755 --- a/plugins/docker/index.py +++ b/plugins/docker/index.py @@ -481,11 +481,7 @@ def dockerCreateCon(): return data[1] environments = args['environments'] - - c = getDClient() - - # if __name__ == "__main__": - # print(args) + environments = environments.strip().split() command = args['command'] entrypoint = args['entrypoint'] @@ -495,9 +491,11 @@ def dockerCreateCon(): ports = ports.replace('[', '(').replace(']', ')') volumes = args['volumes'] + # if __name__ == "__main__": + # print(args) try: - environments = environments.strip().split() + c = getDClient() conObject = c.containers.run( image=image, mem_limit=mem_limit + 'M',