Container
Deploy and manage container applications on Cloudflare’s global network.Container Binding
Creates a Container binding for use in Cloudflare Workers.Props
The class name for the container binding.
Docker build configuration.
Pre-built image reference (alternative to build).
Maximum number of container instances that can be running.
Instance type determining compute resources.Options:
lite, dev, basic, standard, standard-1, standard-2, standard-3, standard-4Output
Unique identifier for the container.
Class name used to identify the container in Worker bindings.
Docker image configuration for the container.
Type identifier for the binding.
Example
ContainerApplication
Deploy a managed container application with automatic scaling.Props
The name of the container application.
The Docker image to deploy in the container application.
The initial number of container instances to deploy.
The maximum number of instances to be used for the deployment.
The instance type to be used for the deployment.
| Instance Type | vCPU | Memory (Min) | Memory (Max) |
|---|---|---|---|
| lite | 1/16 | 256 MiB | 2 GB |
| basic | 1/4 | 1 GiB | 4 GB |
| standard-1 | 1/2 | 4 GiB | 8 GB |
| standard-2 | 1 | 6 GiB | 12 GB |
| standard-3 | 2 | 8 GiB | 16 GB |
| standard-4 | 4 | 12 GiB | 20 GB |
Scheduling policy that controls container placement.Options:
moon, gpu, regional, fill_metals, defaultConfiguration for progressive rollout when updating.
Whether to adopt an existing container application with the same name.
Output
Unique identifier for the container application.
Human-readable name of the container application.