diff --git a/ascend_deployer/library/install_docker_runtime.py b/ascend_deployer/library/install_docker_runtime.py index 7384f75dce59741c8b7f626510138bfa9d1f4d18..f0bd17b4d4951601ab51928fbd310ae05e80db21 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" ]