Docker.Debug.Config (docker_wrapper v0.1.2)

Copy Markdown View Source

Debug configuration for Docker command execution.

Controls dry-run mode, verbose logging, and retry behavior.

Examples

# Dry run -- see what would be executed without running it
debug = Docker.Debug.Config.new(dry_run: true)
{:ok, cmd_string} = Docker.run(run_cmd, debug: debug)

# Verbose logging
debug = Docker.Debug.Config.new(verbose: true)

# With retry
debug = Docker.Debug.Config.new(retry: Docker.Debug.Retry.new(max_attempts: 5))

Summary

Functions

Creates a new debug config.

Types

t()

@type t() :: %Docker.Debug.Config{
  dry_run: boolean(),
  retry: Docker.Debug.Retry.t() | nil,
  verbose: boolean()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Creates a new debug config.

Options

  • :dry_run - build the command but don't execute it (default: false)
  • :verbose - log commands and output via Logger (default: false)
  • :retry - a Docker.Debug.Retry policy (default: nil)