class_docstr: Container builder that uses local Docker daemon process.
class_docstr_tok: ["Container","builder","that","uses","local","Docker","daemon","process","."]
docstr: Builds, publishes and returns a Docker image.
  
  Args:
      max_status_check_attempts: Maximum number of times allowed to check
          build status. Not applicable to this builder.
      delay_between_status_checks: Time is seconds to wait between status
          checks. Not applicable to this builder.
  Returns:
      URI in a registory where the Docker image has been built and pushed.
docstr_tok: ["Builds",",","publishes","and","returns","a","Docker","image",".","Args",":","max_status_check_attempts",":","Maximum","number","of","times","allowed","to","check","build","status",".","Not","applicable","to","this","builder",".","delay_between_status_checks",":","Time","is","seconds","to","wait","between","status","checks",".","Not","applicable","to","this","builder",".","Returns",":","URI","in","a","registory","where","the","Docker","image","has","been","built","and","pushed","."]
code: def get_docker_image(
      self,
      max_status_check_attempts=None,
      delay_between_status_checks=None,
  ):
      """Builds, publishes and returns a Docker image.
  
      Args:
          max_status_check_attempts: Maximum number of times allowed to check
              build status. Not applicable to this builder.
          delay_between_status_checks: Time is seconds to wait between status
              checks. Not applicable to this builder.
      Returns:
          URI in a registory where the Docker image has been built and pushed.
      """
      self.docker_client = docker.APIClient(version="auto")
      self._get_tar_file_path()
  
      # create Docker image from tarball
      image_uri = self._build_docker_image()
      # push to the registry
      self._publish_docker_image(image_uri)
      return 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 1 for calling the LocalContainerBuilder obj's underlying member method code with example usage: obj.get_docker_image(max_status_check_attempts, delay_between_status_checks) and returns: image_uri