[docker/dashboard] Fix ray dashboard (#12899)

This commit is contained in:
Ian Rodney
2021-01-15 10:03:01 -08:00
committed by GitHub
parent dac8b3d58a
commit 0ec9ddabc1
3 changed files with 33 additions and 1 deletions
@@ -598,7 +598,8 @@ class DockerCommandRunner(CommandRunnerInterface):
shutdown_after_run=False,
):
if run_env == "auto":
run_env = "host" if cmd.find("docker") == 0 else "docker"
run_env = "host" if (not bool(cmd)
or cmd.find("docker") == 0) else "docker"
if environment_variables:
cmd = _with_environment_variables(cmd, environment_variables)