[docker] Docker stop on each node (#12357)

This commit is contained in:
Ian Rodney
2020-11-24 23:15:53 -08:00
committed by GitHub
parent 20eb217c55
commit c5845c3a4e
+15 -11
View File
@@ -364,17 +364,21 @@ def teardown_cluster(config_file: str, yes: bool, workers_only: bool,
def run_docker_stop(node, container_name):
try:
exec_cluster(
config_file,
cmd=f"docker stop {container_name}",
run_env="host",
screen=False,
tmux=False,
stop=False,
start=False,
override_cluster_name=override_cluster_name,
port_forward=None,
with_output=False)
updater = NodeUpdaterThread(
node_id=node,
provider_config=config["provider"],
provider=provider,
auth_config=config["auth"],
cluster_name=config["cluster_name"],
file_mounts=config["file_mounts"],
initialization_commands=[],
setup_commands=[],
ray_start_commands=[],
runtime_hash="",
file_mounts_contents_hash="",
is_head_node=False,
docker_config=config.get("docker"))
_exec(updater, cmd=f"docker stop {container_name}", run_env="host")
except Exception:
cli_logger.warning(f"Docker stop failed on {node}")