##### METHOD 2 of "streaming"/"piping" a file into a container command. we cheat here:
##### "streaming"/"piping" a file into a container command. we cheat here a little bit:
# put_archive. Instead of streaming the file to our command we first create an tar-archive of the file and copy&save the tar-file into the container and stream the file from inside the container via a pipe bash in exec_run
f"ERROR during container ({self.container_name}) exec:\nCommand: '{command}'\nError: '{stderr}'"
)
else:
returnstdout
ifrm_res.exit_code!=0:
# there was an error while tiding up the tmp internal result file
raiseException(
f"ERROR during removing internal temp result file ({internal_output_file_path}) in container '{self.container_name}' Error:\n'{rm_res.output[1].decode('utf-8')}'"