Containers
Interact with Containers using Wrangler.
Build a Container image from a Dockerfile.
wrangler containers build [PATH] [OPTIONS]PATHstringoptional- Path for the directory containing the Dockerfile to build.
-t, --tagstringrequired- Name and optionally a tag (format: "name:tag").
--path-to-dockerstringoptional- Path to your docker binary if it's not on
$PATH. - Default: "docker"
- Path to your docker binary if it's not on
-p, --pushbooleanoptional- Push the built image to Cloudflare's managed registry.
- Default: false
Delete a Container (application).
wrangler containers delete <CONTAINER_ID> [OPTIONS]CONTAINER_IDstringrequired- The ID of the Container to delete.
Perform operations on images in your containers registry.
List images in your containers registry.
wrangler containers images list [OPTIONS]--filterstringoptional- Regex to filter results.
--jsonbooleanoptional- Return output as clean JSON.
- Default: false
Remove an image from your containers registry.
wrangler containers images delete [IMAGE] [OPTIONS]IMAGEstringrequired- Image to delete of the form
IMAGE:TAG
- Image to delete of the form
Configure and view registries available to your container. Read more about our currently supported external registries.
List registries your containers are able to use.
wrangler containers registries list [OPTIONS]--jsonbooleanoptional- Return output as clean JSON.
- Default: false
Configure a new registry for your account.
wrangler containers registries configure [DOMAIN] [OPTIONS]DOMAINstringrequired- Domain to configure for the registry.
--public-credentialstringrequired- The public part of the registry credentials, e.g.
AWS_ACCESS_KEY_IDfor ECR
- The public part of the registry credentials, e.g.
--secret-store-idstringoptional- The ID of the secret store to use to store the registry credentials
--secret-namestringoptional- The name Wrangler should store the registry credentials under
When run interactively, wrangler will prompt you for your secret and store it in Secrets Store. To run non-interactively, you can send your secret value to wrangler through stdin to have the secret created for you.
Remove a registry configuration from your account.
wrangler containers registries delete [DOMAIN] [OPTIONS]DOMAINstringrequired- domain of the registry to delete
Generate temporary credentials to push or pull images from the Cloudflare managed registry (registry.cloudflare.com).
wrangler containers registries credentials [OPTIONS]--pushbooleanoptional- Generate credentials with push permission.
--pullbooleanoptional- Generate credentials with pull permission.
--expiration-minutesnumberoptional- How long the credentials should be valid for (in minutes).
- Default: 15
At least one of --push or --pull must be specified.
Get information about a specific Container, including top-level details and a list of instances.
wrangler containers info <CONTAINER_ID> [OPTIONS]CONTAINER_IDstringrequired- The ID of the Container to get information about.
List all Container instances for a given application. Displays instance ID, name, state, location, version, and creation time.
In interactive mode, results are paginated. Press Enter to load the next page or Esc/q to stop. In non-interactive environments (for example, when piping output or running in CI), all pages are fetched automatically.
Use the --json flag to return output as a flat JSON array. Each element contains the fields id, name, state, location, version, and created. This is also the default output format in non-interactive environments.
wrangler containers instances <APPLICATION_ID> [OPTIONS]APPLICATION_IDstringrequired- The UUID of the application to list instances for. Use
wrangler containers listto find application IDs.
- The UUID of the application to list instances for. Use
--per-pagenumberoptional- Number of instances per page.
- Default: 25
--jsonbooleanoptional- Return output as clean JSON.
- Default: false
For example, to list instances for an application:
wrangler containers instances 12345678-abcd-1234-abcd-123456789abcINSTANCE NAME STATE LOCATION VERSION CREATEDa1b2c3d4-e5f6-7890-abcd-ef1234567890 worker-12 running sfo06 3 2025-06-01T12:00:00Zb2c3d4e5-f6a7-8901-bcde-f12345678901 worker-47 provisioning iad01 2 2025-06-01T13:00:00ZTo get the same data as JSON:
wrangler containers instances 12345678-abcd-1234-abcd-123456789abc --json[ { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "worker-12", "state": "running", "location": "sfo06", "version": 3, "created": "2025-06-01T12:00:00Z" }]List the Containers in your account.
wrangler containers list [OPTIONS]Push a tagged image to a Cloudflare managed registry, which is automatically integrated with your account.
wrangler containers push [TAG] [OPTIONS]TAGstringrequired- The name and tag of the container image to push.
--path-to-dockerstringoptional- Path to your docker binary if it's not on
$PATH. - Default: "docker"
- Path to your docker binary if it's not on
Connect to a running Container instance using SSH. Refer to SSH for configuration details.
wrangler containers ssh <INSTANCE_ID>You can also specify a command to run, instead of the default shell. For example:
wrangler containers ssh <INSTANCE_ID> -- ls -alINSTANCE_IDstringrequired- The ID of the Container instance to SSH into.