class_docstr: A wrapper for running commands in ray ci docker container
docstr: Get docker run command
  :param script: script to run in container
  :param gpu_ids: ids of gpus on the host machine
docstr_tok: ["Get","docker","run","command",":","param","script",":","script","to","run","in","container",":","param","gpu_ids",":","ids","of","gpus","on","the","host","machine"]
code: def get_run_command(
      self,
      script: List[str],
      network: Optional[str] = None,
      gpu_ids: Optional[List[int]] = None,
      volumes: Optional[List[str]] = None,
  ) -> List[str]:
      """
      Get docker run command
      :param script: script to run in container
      :param gpu_ids: ids of gpus on the host machine
      """
      (
          artifact_mount_host,
          artifact_mount_container,
      ) = self.get_artifact_mount()
      command = [
          "docker",
          "run",
          "-i",
          "--rm",
          "--volume",
          f"{artifact_mount_host}:{artifact_mount_container}",
      ]
      for env in self.envs:
          command += ["--env", env]
      if network:
          command += ["--network", network]
      for volume in volumes or []:
          command += ["--volume", volume]
      return (
          command
          + self.get_run_command_extra_args(gpu_ids)
          + [self._get_docker_image()]
          + self.get_run_command_shell()
          + ["\n".join(script)]
      )
  
file_path: ray/ci/ray_ci/container.py
imports: import abc
  import os
  import subprocess
  import sys
  from typing import List, Tuple, Optional
label_desc: Use image node_id 6 for calling the Container obj's underlying member method code with example usage: obj.get_run_command(script, network, gpu_ids, volumes) and returns: unknown