class_docstr: Builds a docker image for a project.
  
  Attributes:
      builder_config (Dict[str, Any]): The builder config.
class_docstr_tok: ["Builds","a","docker","image","for","a","project",".","Attributes",":","builder_config","(","Dict","[","str",",","Any","]",")",":","The","builder","config","."]
docstr: Initialize a DockerBuilder.
  
  Arguments:
      environment (AbstractEnvironment): The environment to use.
      registry (AbstractRegistry): The registry to use.
  
  Raises:
      LaunchError: If docker is not installed
docstr_tok: ["Initialize","a","DockerBuilder",".","Arguments",":","environment","(","AbstractEnvironment",")",":","The","environment","to","use",".","registry","(","AbstractRegistry",")",":","The","registry","to","use",".","Raises",":","LaunchError",":","If","docker","is","not","installed"]
code: def __init__(
      self,
      environment: AbstractEnvironment,
      registry: AbstractRegistry,
      config: Dict[str, Any],
  ):
      """Initialize a DockerBuilder.
  
      Arguments:
          environment (AbstractEnvironment): The environment to use.
          registry (AbstractRegistry): The registry to use.
  
      Raises:
          LaunchError: If docker is not installed
      """
      self.environment = (
          environment  # Docker builder doesn't actually use this.
      )
      self.registry = registry
      self.config = config
  
file_path: wandb/wandb/sdk/launch/builder/docker_builder.py
imports: import logging
  import os
  from typing import Any, Dict, Optional
  import wandb
  import wandb.docker
  from wandb.sdk.launch.agent.job_status_tracker import JobAndRunStatusTracker
  from wandb.sdk.launch.builder.abstract import AbstractBuilder
  from wandb.sdk.launch.builder.build import registry_from_uri
  from wandb.sdk.launch.environment.abstract import AbstractEnvironment
  from wandb.sdk.launch.registry.abstract import AbstractRegistry
  from .._project_spec import EntryPoint, LaunchProject, create_metadata_file, get_entry_point_command
  from ..errors import LaunchDockerError, LaunchError
  from ..registry.local_registry import LocalRegistry
  from ..utils import LOG_PREFIX, event_loop_thread_exec, sanitize_wandb_api_key, warn_failed_packages_from_build_logs
  from .build import _create_docker_build_ctx, generate_dockerfile, image_tag_from_dockerfile_and_source, validate_docker_installation
label_desc: Use image node_id 1 to create a new DockerBuilder object from inherited base classes: AbstractBuilder with example: obj = DockerBuilder(environment, registry, config)