Back to blog
Automation6 min read

Docker Outbound Proxy Configuration

Configure HTTP_PROXY for Docker builds and containers — daemon.json, build args, and Compose env propagation.

Configure HTTP_PROXY for Docker builds and containers — daemon.json, build args, and Compose env propagation.

Build-time proxy

Pass --build-arg HTTP_PROXY during docker build for package installs behind corporate egress.

Runtime env

Set env vars in docker-compose.yml for scraper containers.

Caveats

Not all tools honor env vars — verify language-specific agents inside images.

Related: env vars guide.

Need proxies at scale?

proxies.st offers health-checked HTTP and SOCKS pools with dashboard access, API keys, and plain-text bulk feeds for pipelines.

Related guides