Parameter Reference
Quick reference for all available Docker resource parameters:| Parameter | Description |
|---|---|
DOCKER_CPU_LIMIT | CPU limit in cores |
DOCKER_MEMORY_LIMIT | Memory limit |
DOCKER_CPU_RESERVATION | Minimum CPU reservation |
DOCKER_MEMORY_RESERVATION | Minimum memory reservation |
Resource Limits
Maximum CPU allocation for Docker containers in number of cores.Examples:
2.0- 2 CPU cores (default)4.0- 4 CPU cores for high-performance workloads1.0- 1 CPU core for resource-constrained environments0.5- Half a core (minimum viable)
This is a hard limit. Containers cannot exceed this CPU allocation even if resources are available.
Maximum memory allocation for Docker containers.Format:
- Use suffixes:
G(gigabytes),M(megabytes) - Examples:
4G,512M,8G
4G- 4 gigabytes (default)8G- 8 gigabytes for video processing workloads2G- 2 gigabytes for lightweight deployments1G- 1 gigabyte (minimum recommended)
Resource Reservations
Minimum guaranteed CPU allocation for Docker containers.Examples:
0.5- Half a core guaranteed (default)1.0- 1 CPU core guaranteed2.0- 2 CPU cores guaranteed for critical workloads0.25- Quarter core (minimum)
Reservations ensure containers always have access to a minimum amount of resources, even under high load.
Minimum guaranteed memory allocation for Docker containers.Format:
- Use suffixes:
G(gigabytes),M(megabytes) - Examples:
1G,512M,2G
1G- 1 gigabyte guaranteed (default)2G- 2 gigabytes guaranteed512M- 512 megabytes (minimum)4G- 4 gigabytes for memory-intensive workloads
Reservations should be lower than limits. They ensure containers have minimum resources available.
Configuration Examples
- Development
- Production (High Performance)
- Resource Constrained
Best Practices
Resource planning
Plan CPU and memory limits based on your workload. Video processing requires more resources than image-only operations.
Memory allocation
Allocate sufficient memory for video processing. Insufficient memory can cause job failures.