Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/docs/containers/local-dev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ If your Worker app creates many container instances, your local machine may not

Additionally, if you regularly rebuild containers locally, you may want to clear
out old container images (using `docker image prune` or similar) to reduce disk used.

Also note that the `max_instances` configuration option is only enforced when running in production on Cloudflare's network. This limit does not apply during local development, so you may run more instances than specified.
:::

## Iterating on Container code
Expand Down
12 changes: 7 additions & 5 deletions src/content/docs/workers/wrangler/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1094,13 +1094,15 @@ The following options are available:

- `max_instances` <Type text="string" /> <MetaInfo text="optional" />

- The maxiumum number of concurrent container instances you want to run. If you have more Durable Objects that
- The maximum number of concurrent container instances you want to run. If you have more Durable Objects that
request to run a container than this number, the container request will error. You may have more Durable Objects
than this number over a longer time period, but you may not have more concurrently.

- This value is only enforced when running in production on Cloudflare's network. This limit does not apply during local development, so you may run more instances than specified.

- `name` <Type text="string" /> <MetaInfo text="optional" />

- The name of your container. Used as an identifier. This will default to a comination of your Worker name, the class
- The name of your container. Used as an identifier. This will default to a combination of your Worker name, the class
name, and your environment.

- `image_build_context` <Type text="string" /> <MetaInfo text="optional" />
Expand Down Expand Up @@ -1224,7 +1226,7 @@ You can configure various aspects of local development, such as the local protoc

- `enable_containers` <Type text="boolean" /> <MetaInfo text="optional" />

- Determines whether to enable containers during a local dev session, if they have been configured. Defaults to `true`. If set to `false`, you can develop the rest of your application without requiring Docker or other container tool, as long as you do not invoke any code that interacts with containers.
- Determines whether to enable containers during a local dev session, if they have been configured. Defaults to `true`. If set to `false`, you can develop the rest of your application without requiring Docker or other container tool, as long as you do not invoke any code that interacts with containers.

- `container_engine` <Type text="string" /> <MetaInfo text="optional" />

Expand Down Expand Up @@ -1292,12 +1294,12 @@ You can alias all imports of `node-fetch` to instead point directly to the `fetc

```toml title="wrangler.toml"
[alias]
"node-fetch" = "./fetch-nolyfill"
"node-fetch" = "./fetch-polyfill"
```

</WranglerConfig>

```js title="./fetch-nolyfill"
```js title="./fetch-polyfill"
export default fetch;
```

Expand Down
Loading