跳转到主要内容
本章内容35
-
01
Frequently Asked Questions
import { Render, WranglerConfig } from "~/components";
How do Container logs work?
To get logs in the Dashb...
20 小时前
-
02
Containers
import {
CardGrid,
Description,
Feature,
LinkTitleCard,
Plan,
TabItem,
Tabs,
TypeScriptExample,
WranglerCon...
20 小时前
-
03
Container class
import { PackageManagers, TypeScriptExample } from "~/components";
The
Container class from
@cloudflare/c...
20 小时前
-
04
Durable Object Container API
import { Badge, TypeScriptExample } from "~/components";
Each container is managed and proxied by a Durable...
20 小时前
-
05
API
import { CardGrid, LinkTitleCard, TabItem, Tabs } from "~/components";
Containers provide two APIs for mana...
20 小时前
-
06
Lifecycle of a Container
How images and running Container instances update depends on the scheduling policy for the application.
Wit...
20 小时前
-
07
Container Fundamentals
import { CardGrid, LinkCard } from "
/components";
import { ContainerConnectivity } from "/components/react...
20 小时前
-
08
Placement
import { WranglerConfig } from "~/components";
By default, containers run in the location nearest to the in...
20 小时前
-
09
Environment Variables
import { WranglerConfig } from "~/components";
Runtime environment variables
The container runtime automati...
20 小时前
-
10
Handle outbound traffic
import { TabItem, Tabs } from "~/components";
Outbound handlers let you intercept and modify HTTP traffic f...
20 小时前
-
11
Rollouts
import { WranglerConfig, PackageManagers } from "~/components";
:::note
Rollouts apply to Container applica...
20 小时前
-
12
Scaling and Routing
:::note
This section uses helpers from the Container class.
:::
Today, Containers are scaled manually by ge...
20 小时前
-
13
Scheduling Policies
import { TypeScriptExample, WranglerConfig } from "~/components";
A scheduling policy determines where you ...
20 小时前
-
14
Connect to Workers and Bindings
Containers can access Workers bindings — KV, R2, D1, Durable Objects, and others — through outbound handler...
20 小时前
-
15
Wrangler configuration
import { WranglerConfig } from "~/components";
Define Containers in the Wrangler configuration file for you...
20 小时前
-
16
Static frontend, container backend
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
Details,
} from "~/components";
Serve a static...
20 小时前
-
17
Cron container
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
} from "~/components";
Run a short container t...
20 小时前
-
18
More examples
Explore more ways to control a Container from its Durable Object:
Execute commands: Run a process and read ...
20 小时前
-
19
Environment variables and secrets
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
Render,
} from "~/components";
Pass runtime en...
20 小时前
-
20
Examples
import { ResourcesBySelector } from "~/components";
Build with Containers using the
durable_object schedul...
20 小时前
-
21
Mount R2 buckets with FUSE
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
} from "~/components";
Mount an R2 bucket with...
20 小时前
-
22
Stateless instances
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
Render,
} from "~/components";
Distribute HTTP...
20 小时前
-
23
Monitor container lifecycle
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
Render,
} from "~/components";
Log when a Cont...
20 小时前
-
24
WebSocket to container
import {
TypeScriptExample,
WranglerConfig,
PackageManagers,
} from "~/components";
Forward WebSocket upgra...
20 小时前
-
25
Get started
import { Render, PackageManagers, WranglerConfig } from "~/components";
In this guide, you will deploy a Wo...
20 小时前
-
26
Deploy Containers
import { Steps, DashButton, PackageManagers } from "~/components";
Deploy from your machine
If
image in yo...
20 小时前
-
27
Execute commands
import { TypeScriptExample } from "~/components";
Use
exec() to start another process inside a running Con...
20 小时前
-
28
Image Management
import {
PackageManagers,
Steps,
TypeScriptExample,
WranglerConfig,
} from "~/components";
Container applic...
20 小时前
-
29
Local Development
You can run both your container and your Worker locally by running
npx wrangler dev (or
vite dev for Vite...
20 小时前
-
30
Migrate from the Container class to the Durable Object Container API
import { Steps } from "~/components";
The Durable Object Container API lets your Durable Object coordinate ...
20 小时前
-
31
Migrate to the Durable Object scheduling policy
import {
PackageManagers,
Steps,
TypeScriptExample,
WranglerConfig,
} from "~/components";
You cannot chang...
20 小时前
-
32
Use snapshots
import { TypeScriptExample } from "~/components";
Snapshots let you save point-in-time filesystem state fro...
20 小时前
-
33
SSH
import { WranglerConfig } from "~/components";
Anyone with write access to a Container can SSH into it with...
20 小时前
-
34
Limits and Instance Types
import { Render } from "~/components";
:::note
All instance size maximums and account limits on this page a...
20 小时前
-
35
Pricing
import { Render } from "~/components";
vCPU, Memory and Disk
Containers are billed for every 10ms that they...
20 小时前