Platform
The memory, vCPU, and disk space for Containers are set through predefined instance types. Three instance types are currently available:
Instance Type | Memory | vCPU | Disk |
---|---|---|---|
dev | 256 MiB | 1/16 | 2 GB |
basic | 1 GiB | 1/4 | 4 GB |
standard | 4 GiB | 1/2 | 4 GB |
These are specified using the instance_type
property in your Worker's Wrangler configuration file. Looking for larger instances? Give us feedback here and tell us what size instances you need, and what you want to use them for.
While in open beta, the following limits are currently in effect:
Feature | Workers Paid |
---|---|
GB Memory for all concurrent live Container instances | 40GB 1 |
vCPU for all concurrent live Container instances | 20 1 |
GB Disk for all concurrent live Container instances | 100GB 1 |
Image size | Same as instance disk space |
Total image storage per account | 50 GB 2 |
The container runtime automatically sets the following variables:
CLOUDFLARE_APPLICATION_ID
- the ID of the Containers applicationCLOUDFLARE_COUNTRY_A2
- the ISO 3166-1 Alpha 2 code ↗ of a country the container is placed inCLOUDFLARE_DEPLOYMENT_ID
- the ID of the container instanceCLOUDFLARE_LOCATION
- a name of a location the container is placed inCLOUDFLARE_PLACEMENT_ID
- a placement IDCLOUDFLARE_REGION
- a region nameCLOUDFLARE_DURABLE_OBJECT_ID
- the ID of the Durable Object that the container is bound to
Custom environment variables can be set when defining a Container in your Worker:
class MyContainer extends Container { defaultPort = 4000; envVars = { MY_CUSTOM_VAR: "value", ANOTHER_VAR: "another_value", };}
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark