Hi,
I am trying to run the OpenThread border router, which needs to be ran with:
docker run --sysctl "net.ipv6.conf.all.disable_ipv6=0 \
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1" \
-p 8080:80 --dns=127.0.0.1 -it --volume \
/dev/ttyACM0:/dev/ttyACM0 --privileged openthread/otbr \
--radio-url spinel+hdlc+uart:///dev/ttyACM0
I’m in a multicontainer setup, so I tried to add sysctls
field to my container, like that:
version: '2'
services:
otbr:
build:
context: "./otbr"
privileged: true
command: --radio-url spinel+hdlc+uart:///dev/ttyACM0
devices:
- /dev/ttyACM0:/dev/ttyACM0
sysctls:
net.ipv6.conf.all.disable_ipv6: 0
net.ipv4.conf.all.forwarding: 1
net.ipv6.conf.all.forwarding: 1
Unfortunately, this fails with a Could not parse compose file: data/services/otbr should NOT have additional properties. Removing the sysctls
field makes the error go away, but, as this page shows, it should be supported by the supervisor.
Am I doing something wrong?
Thanks!
Marvin