Container Configuration

The containers section configures Docker container management for task execution.

Overview

Container configuration manages:

  • Docker/Podman runtime settings

  • GPU support

  • Resource limits

  • Network configuration

  • Image management

Configuration Example

[containers]
gpu_enabled = true
default_memory_limit = "4G"
default_cpu_limit = "2.0"
docker_network = "host"
runtime = "docker"
pull_timeout = 300

Configuration Fields

gpu_enabled

Type: boolean or null

Default: null (auto-detect)

Description: Whether to enable GPU support for containers

# Auto-detect GPU
gpu_enabled = null

# Force GPU enabled
gpu_enabled = true

# Disable GPU
gpu_enabled = false

default_memory_limit

Type: string

Default: "4G"

Description: Default memory limit for containers

default_memory_limit = "2G"   # 2 gigabytes
default_memory_limit = "512M" # 512 megabytes
default_memory_limit = "8G"   # 8 gigabytes

default_cpu_limit

Type: string

Default: "2.0"

Description: Default CPU limit for containers (number of cores)

default_cpu_limit = "1.0"  # 1 CPU core
default_cpu_limit = "0.5"  # Half CPU core
default_cpu_limit = "4.0"  # 4 CPU cores

docker_network

Type: string

Default: "host"

Description: Docker network mode for containers

docker_network = "host"    # Host network
docker_network = "bridge"  # Bridge network
docker_network = "none"    # No network

runtime

Type: string

Default: "docker"

Description: Container runtime to use

runtime = "docker"  # Docker runtime
runtime = "podman"  # Podman runtime

pull_timeout

Type: integer

Default: 300 (5 minutes)

Description: Timeout for pulling Docker images in seconds

See Also