From 46996c83a29657ca6f1151ad12c004b788d5bb3f Mon Sep 17 00:00:00 2001 From: John Date: Wed, 30 Oct 2024 21:04:40 +0100 Subject: [PATCH] add mdns hint --- contrib/docker/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/docker/README.md b/contrib/docker/README.md index 92ef21e7..6b798364 100644 --- a/contrib/docker/README.md +++ b/contrib/docker/README.md @@ -50,7 +50,12 @@ Using a network device ---------------------- When using a network device, the "--device" argument to docker can be omitted, but the device information has to be passed on to ebusd: -> docker run --rm -it -p 8888 john30/ebusd --scanconfig -d 192.168.178.123:10000 --latency=20 +> docker run --rm -it -p 8888 john30/ebusd --scanconfig -d ens:192.168.178.123 --latency=20 + +If mDNS device discovery is supposed to be used, then the container needs to run on the host network instead of the default bridge network, +as multicast traffic is usually only routed via the host network, i.e. use "--network=host" as additional argument. +Then the device argument can be omitted (as long as there is only one mDNS discoverable device on the net), e.g.: +> docker run --rm -it -p 8888 --network=host john30/ebusd --scanconfig --latency=20 Note: the required "-f" (foreground) argument is passed as environment variable and does not need to be specified anymore.