Examples (4)

Last updated Oct 2, 2026 Build with Containers using the durable_object scheduling policy. Each example configures a named image and starts it from a Durable Object with the Container API.

Start with Stateless instances for HTTP routing, or Cron container for a scheduled task.

Static frontend, container backend A simple frontend app with a containerized backend

Cron container Running a container on a schedule using Cron Triggers

More examples Various examples calling Containers directly from Durable Objects

Environment variables and secrets Pass in environment variables and secrets to your container

Mount R2 buckets with FUSE Mount R2 buckets as filesystems using FUSE in Containers

Stateless instances Run multiple instances across Cloudflare's network

Monitor container lifecycle Execute Workers code in reaction to Container status changes

WebSocket to container Forwarding a Websocket request to a Container

Was this helpful?

YesNo

On this page

Examples (4) - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/containers/examples/#page","headline":"Examples","description":"Code examples showing how to use Containers with Workers for stateless routing, cron jobs, WebSockets, and more.","url":"https://developers.cloudflare.com/containers/examples/","inLanguage":"en","image":"https://developers.cloudflare.com/containers/examples/og.png?v=e9cf0d7d69da226c","dateModified":"2026-10-02","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: A simple frontend app with a containerized backend title: Static frontend, container backend image: https://developers.cloudflare.com/containers/examples/container-backend/og.png?v=bad3f19d23bc5627


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/containers/llms.txt
Use this file to discover all available pages before exploring further.