mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 07:58:26 +08:00
[autoscaler] docker run options (#3921)
Adds support for docker options, allowing for use of nvidia-docker. Closes #2657.
This commit is contained in:
committed by
Richard Liaw
parent
4347ab644e
commit
729d0b2825
@@ -627,6 +627,11 @@ def submit(cluster_config_file, screen, tmux, stop, start, cluster_name,
|
||||
@cli.command()
|
||||
@click.argument("cluster_config_file", required=True, type=str)
|
||||
@click.argument("cmd", required=True, type=str)
|
||||
@click.option(
|
||||
"--docker",
|
||||
is_flag=True,
|
||||
default=False,
|
||||
help="Runs command in the docker container specified in cluster_config.")
|
||||
@click.option(
|
||||
"--stop",
|
||||
is_flag=True,
|
||||
@@ -652,9 +657,9 @@ def submit(cluster_config_file, screen, tmux, stop, start, cluster_name,
|
||||
help="Override the configured cluster name.")
|
||||
@click.option(
|
||||
"--port-forward", required=False, type=int, help="Port to forward.")
|
||||
def exec_cmd(cluster_config_file, cmd, screen, tmux, stop, start, cluster_name,
|
||||
port_forward):
|
||||
exec_cluster(cluster_config_file, cmd, screen, tmux, stop, start,
|
||||
def exec_cmd(cluster_config_file, cmd, docker, screen, tmux, stop, start,
|
||||
cluster_name, port_forward):
|
||||
exec_cluster(cluster_config_file, cmd, docker, screen, tmux, stop, start,
|
||||
cluster_name, port_forward)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user