[autoscaler] Create Docker Command Runner (#8806)

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Ian Rodney
2020-06-05 17:29:27 -07:00
committed by GitHub
co-authored by Richard Liaw
parent 488c06e92d
commit 54189bca5a
5 changed files with 86 additions and 16 deletions
+5 -4
View File
@@ -147,7 +147,8 @@ def kill_node(config_file, yes, hard, override_cluster_name):
initialization_commands=[],
setup_commands=[],
ray_start_commands=[],
runtime_hash="")
runtime_hash="",
docker_config=config["docker"])
_exec(updater, "ray stop", False, False)
@@ -286,7 +287,7 @@ def get_or_create_head_node(config, config_file, no_restart, restart_only, yes,
setup_commands=init_commands,
ray_start_commands=ray_start_commands,
runtime_hash=runtime_hash,
)
docker_config=config["docker"])
updater.start()
updater.join()
@@ -407,7 +408,7 @@ def exec_cluster(config_file,
setup_commands=[],
ray_start_commands=[],
runtime_hash="",
)
docker_config=config["docker"])
def wrap_docker(command):
container_name = config["docker"]["container_name"]
@@ -529,7 +530,7 @@ def rsync(config_file,
setup_commands=[],
ray_start_commands=[],
runtime_hash="",
)
docker_config=config["docker"])
if down:
rsync = updater.rsync_down
else: