Skip to content

Commit 5ce4063

Browse files
dario-piotrowiczemily-shenOxyjun
authored
Small improvements in the local dev containers docs (#23702)
--------- Co-authored-by: emily-shen <[email protected]> Co-authored-by: Jun Lee <[email protected]>
1 parent 068e796 commit 5ce4063

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,14 @@ You can configure various aspects of local development, such as the local protoc
12221222

12231223
- Host to forward requests to, defaults to the host of the first `route` of the Worker.
12241224

1225+
- `enable_containers` <Type text="boolean" /> <MetaInfo text="optional" />
1226+
1227+
- 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.
1228+
1229+
- `container_engine` <Type text="string" /> <MetaInfo text="optional" />
1230+
1231+
- Defaults to `unix:///var/run/docker.sock`. Set this to the socket path your container engine is listening at if you are using another container tool besides Docker, such as `colima`, or if your Docker engine is configured to listen at a path other than `unix:///var/run/docker.sock`. You can also set this via the environment variable `WRANGLER_DOCKER_HOST`.
1232+
12251233
Example:
12261234

12271235
<WranglerConfig>

src/content/docs/workers/wrangler/system-environment-variables.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ Wrangler supports the following environment variables:
6767

6868
* By setting this to `0`, you can disable Wrangler's colorised output, which makes it easier to read with some terminal setups. For example, `FORCE_COLOR=0`.
6969

70+
* `WRANGLER_DOCKER_HOST` <Type text="string" /> <MetaInfo text="optional" />
7071

72+
* Defaults to `unix:///var/run/docker.sock`. Set this to the socket path your container engine is listening at if you are using another container tool besides Docker, such as `colima`, or if your Docker engine is configured to listen at a path other than `unix:///var/run/docker.sock`.
73+
You can also set this via `container_engine` config option.
7174

7275

7376

src/content/partials/workers/bindings_per_env.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ You can configure [**remote bindings** during local development](/workers/develo
1616
| **Browser Rendering** |||
1717
| **D1** |||
1818
| **Durable Objects** |||
19+
| **Containers** |||
1920
| **Email Bindings** |||
2021
| **Hyperdrive** |||
2122
| **Images** |||
@@ -46,6 +47,7 @@ Supported only in [`wrangler dev --remote`](/workers/wrangler/commands/#dev) - t
4647
| **Browser Rendering** ||
4748
| **D1** ||
4849
| **Durable Objects** ||
50+
| **Containers** ||
4951
| **Email Bindings** ||
5052
| **Hyperdrive** ||
5153
| **Images** ||
@@ -57,5 +59,3 @@ Supported only in [`wrangler dev --remote`](/workers/wrangler/commands/#dev) - t
5759
| **Service Bindings (multiple Workers)** ||
5860
| **Vectorize** ||
5961
| **Workflows** ||
60-
61-
---

0 commit comments

Comments
 (0)