Cloudflare

Simple, scalable, and global: Containers are coming to Cloudflare Workers in June 2025

Apr 11, 2025Mike Nomitch, Gabi Villalonga Simón
Simple, scalable, and global: Containers are coming to Cloudflare Workers in June 2025
SummaryAI, from the source post

This post introduces Cloudflare Containers, a new capability that allows running containerized applications on the Cloudflare Workers platform. It details how containers can be deployed and managed via Wrangler configuration and Workers code, enabling stateful and stateless workloads. Key technical contributions include the `Container` class for simplified container instantiation and management, integration with Durable Objects for programmable sidecar functionality (start, stop, exec, monitor, state persistence), and the use of Workers for advanced routing, API gateway, and service mesh patterns. Examples demonstrate running untrusted AI-generated code in sandboxed containers and deploying stateless applications like FFmpeg with autoscaling. The underlying architecture leverages Durable Objects to manage container lifecycles and state, providing fine-grained control and enabling advanced use cases.

More from the Edge Computing with Cloudflare Workers trail