From 3788df3c45ea29f95a0e36b9e311e8a72ec164de Mon Sep 17 00:00:00 2001 From: xuchuan19 Date: Fri, 27 Jun 2025 15:18:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dascen=20docker=20runtime?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=97=B6=E4=B8=8D=E6=94=AF=E6=8C=81--install?= =?UTF-8?q?-scene=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ascend_deployer/library/install_docker_runtime.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ascend_deployer/library/install_docker_runtime.py b/ascend_deployer/library/install_docker_runtime.py index 7384f75d..f0bd17b4 100644 --- a/ascend_deployer/library/install_docker_runtime.py +++ b/ascend_deployer/library/install_docker_runtime.py @@ -70,13 +70,14 @@ class DockerRuntimeInstaller: # Check if nox11 parameter is needed _, help_messages = common_utils.run_command(self.module, "bash {} --help".format(run_file)) cmd_arg = " --nox11" if any("nox11" in msg for msg in help_messages) else "" - + # Check if --install-scene parameter exists and k8s container runtime type is containerd + extra_param = "--install-scene=containerd " if any("--install-scene" in msg for msg in help_messages) else "" # Execute installation commands commands = [] if node_type == ContainerRuntimeType.CONTAINERD: commands = [ "bash {0} --uninstall{1}".format(run_file, cmd_arg), - "bash {0} --install{1} --install-scene=containerd".format(run_file, cmd_arg), + "bash {0} --install{1} {2}".format(run_file, cmd_arg, extra_param), "systemctl daemon-reload", "systemctl restart containerd kubelet" ] -- Gitee