From 05b63b8d2b36b6aa579958be1e453982c608f115 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 3 Jul 2023 17:45:12 +0800 Subject: [PATCH] Update index.py --- plugins/docker/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/docker/index.py b/plugins/docker/index.py index 4ce0397e5..05fd1a8ce 100755 --- a/plugins/docker/index.py +++ b/plugins/docker/index.py @@ -287,7 +287,7 @@ def dockerExec(): c = getDClient() try: conFind = c.containers.get(Hostname) - cmd = 'docker container exec -it %s /bin/bash' % Hostname + cmd = 'docker container exec -it %s /bin/sh' % Hostname return mw.returnJson(True, cmd) except docker.errors.APIError as ex: return mw.returnJson(False, '连接失败!')