code: def start_container(self, image, container_name: str, repo_path: Path):
          
          command = "bash -i"
  
          if self.inherit_image:
              command = "sh -i"
  
          container = self.client.containers.run(image, command=command, detach=True, tty=True, name=container_name,
                                                 working_dir=str((Path("/srv/data") / self.cwd).resolve()),
                                                 auto_remove=True)
  
          container.exec_run(["mkdir", "-p", "/srv/scripts"])
          container.put_archive("/srv", self.tar_files(repo_path))
          container.put_archive("/srv/scripts", self.tar_runner())
  
          return container
docs: Starts a container with the image and name ``container_name`` and copies the repository into the container.
  
          :type image: docker.models.images.Image
          :rtype: docker.models.container.Container