def start_container(self, image, container_name: str, repo_path: Path):
command = "<STR_LIT>"<EOL>if self.inherit_image:<EOL><INDENT>command = "<STR_LIT>"<EOL><DEDENT>container = self.client.containers.run(image, command=command, detach=True, tty=True, name=container_name,<EOL>working_dir=str((Path("<STR_LIT>") / self.cwd).resolve()),<EOL>auto_remove=True)<EOL>container.exec_run(["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"])<EOL>container.put_archive("<STR_LIT>", self.tar_files(repo_path))<EOL>container.put_archive("<STR_LIT>", self.tar_runner())<EOL>return container<EOL>
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