class_docstr: A model server runner that runs in a local docker runtime.
  
  You need to pre-install docker in the machine that is running InfraValidator
  component. For that reason, it is recommended to use this runner only for
  testing purpose.
class_docstr_tok: ["A","model","server","runner","that","runs","in","a","local","docker","runtime",".","You","need","to","pre-install","docker","in","the","machine","that","is","running","InfraValidator","component",".","For","that","reason",",","it","is","recommended","to","use","this","runner","only","for","testing","purpose","."]
code: def GetLogs(self) -> Optional[str]:
      if self._container:
          result = self._container.logs()
          if isinstance(result, bytes):
              return result.decode("utf-8")
          elif isinstance(result, str):
              return result
          else:  # Generator of strs:
              return "\n".join(result)
      return None
  
imports: import os
  import time
  from typing import Any, Dict, Optional
  from absl import logging
  import docker
  from docker import errors
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import serving_bins
  from tfx.components.infra_validator.model_server_runners import base_runner
  from tfx.proto import infra_validator_pb2
label_desc: Use image node_id 6 for calling the LocalDockerRunner obj's underlying member method code with example usage: obj.GetLogs() and returns: None, result, result, str