class_docstr: Container builder that uses local Docker daemon process.
class_docstr_tok: ["Container","builder","that","uses","local","Docker","daemon","process","."]
docstr: Decodes logs from Docker and generates user friendly logs.
  
  Args:
      logs_generator: Generator returned from Docker build/push APIs.
      name: String, 'build' or 'publish' used to identify where the
          generator came from.
      image_uri: String, the Docker image URI.
  
  Raises:
      RuntimeError: if there are any errors when building or publishing a
      docker image.
docstr_tok: ["Decodes","logs","from","Docker","and","generates","user","friendly","logs",".","Args",":","logs_generator",":","Generator","returned","from","Docker","build\/push","APIs",".","name",":","String",",","'build","'","or","'publish","'","used","to","identify","where","the","generator","came","from",".","image_uri",":","String",",","the","Docker","image","URI",".","Raises",":","RuntimeError",":","if","there","are","any","errors","when","building","or","publishing","a","docker","image","."]
code: def _get_logs(self, logs_generator, name, image_uri):
      """Decodes logs from Docker and generates user friendly logs.
  
      Args:
          logs_generator: Generator returned from Docker build/push APIs.
          name: String, 'build' or 'publish' used to identify where the
              generator came from.
          image_uri: String, the Docker image URI.
  
      Raises:
          RuntimeError: if there are any errors when building or publishing a
          docker image.
      """
      for chunk in logs_generator:
          if "stream" in chunk:
              for line in chunk["stream"].splitlines():
                  logger.info(line)
  
          if "error" in chunk:
              raise RuntimeError(
                  "Docker image {} failed: {}\nImage URI: {}".format(
                      name, str(chunk["error"]), image_uri
                  )
              )
  
imports: import logging
  import os
  import sys
  import tarfile
  import tempfile
  import time
  import uuid
  import warnings
  from .None import gcp
  from .None import machine_config
  import docker
  from google.cloud import storage
  from google.cloud.exceptions import NotFound
  from googleapiclient import discovery
  from googleapiclient import errors
  import requests
  from ..utils import google_api_client
  from ..utils import tf_utils
label_desc: Use image node_id 4 for calling the LocalContainerBuilder obj's underlying member method code with example usage: obj._get_logs(logs_generator, name, image_uri) without return types