diff --git a/src/content/docs/containers/local-dev.mdx b/src/content/docs/containers/local-dev.mdx index 3e683535cfbece..a0e7fe3bb70c4d 100644 --- a/src/content/docs/containers/local-dev.mdx +++ b/src/content/docs/containers/local-dev.mdx @@ -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 diff --git a/src/content/docs/workers/wrangler/configuration.mdx b/src/content/docs/workers/wrangler/configuration.mdx index 5e919ad933715e..c390e89909c221 100644 --- a/src/content/docs/workers/wrangler/configuration.mdx +++ b/src/content/docs/workers/wrangler/configuration.mdx @@ -1094,13 +1094,15 @@ The following options are available: - `max_instances` - - 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` - - 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` @@ -1224,7 +1226,7 @@ You can configure various aspects of local development, such as the local protoc - `enable_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. + - 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` @@ -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" ``` -```js title="./fetch-nolyfill" +```js title="./fetch-polyfill" export default fetch; ```