























@@ -179,11 +179,10 @@ openclaw plugins disable bonjour
179179180180## Docker gotchas
181181182-Bundled Docker Compose sets `OPENCLAW_DISABLE_BONJOUR=1` for the Gateway service
183-by default. Docker bridge networks usually do not forward mDNS multicast
184-(`224.0.0.251:5353`) between the container and the LAN, so leaving Bonjour on can
185-produce repeated ciao `probing` or `announcing` failures without making discovery
186-work.
182+The bundled Bonjour plugin auto-disables LAN multicast advertising in detected
183+containers when `OPENCLAW_DISABLE_BONJOUR` is unset. Docker bridge networks
184+usually do not forward mDNS multicast (`224.0.0.251:5353`) between the container
185+and the LAN, so advertising from the container rarely makes discovery work.
187186188187Important gotchas:
189188@@ -193,16 +192,16 @@ Important gotchas:
193192`OPENCLAW_GATEWAY_BIND=lan` so the published host port can work.
194193- Disabling Bonjour does not disable wide-area DNS-SD. Use wide-area discovery
195194 or Tailnet when the Gateway and node are not on the same LAN.
196-- Reusing the same `OPENCLAW_CONFIG_DIR` outside Docker does not inherit the
197-Compose default unless the environment still sets `OPENCLAW_DISABLE_BONJOUR`.
195+- Reusing the same `OPENCLAW_CONFIG_DIR` outside Docker does not persist the
196+container auto-disable policy.
198197- Set `OPENCLAW_DISABLE_BONJOUR=0` only for host networking, macvlan, or another
199- network where mDNS multicast is known to pass.
198+ network where mDNS multicast is known to pass; set it to `1` to force-disable.
200199201200## Troubleshooting disabled Bonjour
202201203202If a node no longer auto-discovers the Gateway after Docker setup:
204203205-1. Confirm whether the Gateway is intentionally suppressing LAN advertising:
204+1. Confirm whether the Gateway is running in auto, forced-on, or forced-off mode:
206205207206```bash
208207 docker compose config | grep OPENCLAW_DISABLE_BONJOUR
@@ -239,9 +238,9 @@ If a node no longer auto-discovers the Gateway after Docker setup:
239238 container bridges, WSL, or interface churn can leave the ciao advertiser in a
240239 non-announced state. OpenClaw retries a few times and then disables Bonjour
241240 for the current Gateway process instead of restarting the advertiser forever.
242-- **Docker bridge networking**: bundled Docker Compose disables Bonjour by
243-default with `OPENCLAW_DISABLE_BONJOUR=1`. Set it to `0` only for host,
244-macvlan, or another mDNS-capable network.
241+- **Docker bridge networking**: Bonjour auto-disables in detected containers.
242+Set `OPENCLAW_DISABLE_BONJOUR=0` only for host, macvlan, or another
243+ mDNS-capable network.
245244- **Sleep / interface churn**: macOS may temporarily drop mDNS results; retry.
246245- **Browse works but resolve fails**: keep machine names simple (avoid emojis or
247246 punctuation), then restart the Gateway. The service instance name derives from
@@ -260,7 +259,8 @@ sequences (e.g. spaces become `\032`).
260259- `openclaw plugins disable bonjour` disables LAN multicast advertising by disabling the bundled plugin.
261260- `openclaw plugins enable bonjour` restores the default LAN discovery plugin.
262261- `OPENCLAW_DISABLE_BONJOUR=1` disables LAN multicast advertising without changing plugin config; accepted truthy values are `1`, `true`, `yes`, and `on` (legacy: `OPENCLAW_DISABLE_BONJOUR`).
263-- Docker Compose sets `OPENCLAW_DISABLE_BONJOUR=1` by default for bridge networking; override with `OPENCLAW_DISABLE_BONJOUR=0` only when mDNS multicast is available.
262+- `OPENCLAW_DISABLE_BONJOUR=0` forces LAN multicast advertising on, including inside detected containers; accepted falsy values are `0`, `false`, `no`, and `off`.
263+- When `OPENCLAW_DISABLE_BONJOUR` is unset, Bonjour advertises on normal hosts and auto-disables inside detected containers.
264264- `gateway.bind` in `~/.openclaw/openclaw.json` controls the Gateway bind mode.
265265- `OPENCLAW_SSH_PORT` overrides the SSH port when `sshPort` is advertised (legacy: `OPENCLAW_SSH_PORT`).
266266- `OPENCLAW_TAILNET_DNS` publishes a MagicDNS hint in TXT when mDNS full mode is enabled (legacy: `OPENCLAW_TAILNET_DNS`).
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。