<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def start_container(self, image, container_name: str, repo_path: Path):
 """ 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 """

        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