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","."]
docstr: Make a local docker runner.
  
  Args:
    model_path: An IV-flavored model path. (See model_path_utils.py)
    serving_binary: A ServingBinary to run.
    serving_spec: A ServingSpec instance.
docstr_tok: ["Make","a","local","docker","runner",".","Args",":","model_path",":","An","IV-flavored","model","path",".","(","See","model_path_utils.py",")","serving_binary",":","A","ServingBinary","to","run",".","serving_spec",":","A","ServingSpec","instance","."]
code: def __init__(
      self,
      model_path: str,
      serving_binary: serving_bins.ServingBinary,
      serving_spec: infra_validator_pb2.ServingSpec,
  ):
      """Make a local docker runner.
  
      Args:
        model_path: An IV-flavored model path. (See model_path_utils.py)
        serving_binary: A ServingBinary to run.
        serving_spec: A ServingSpec instance.
      """
      self._model_path = model_path
      self._serving_binary = serving_binary
      self._serving_spec = serving_spec
      self._docker = _make_docker_client(serving_spec.local_docker)
      self._container = None
      self._endpoint = 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 1 to create a new LocalDockerRunner object from inherited base classes: base_runner with example: obj = LocalDockerRunner(model_path, serving_binary, serving_spec)