Replies: 1 comment
Why this happens
The Proper Way: Configure via Environment VariablesThe OTBR container scripts natively read the listening addresses, ports, interfaces, and RCP configuration from environment variables. You do not need any custom Relevant Environment Variables
Example
|
Uh oh!
There was an error while loading. Please reload this page.
Problem
When trying to configure OTBR ports via docker-compose entrypoint, the container crashes in a restart loop.
Expected behavior
The sed commands should modify
/etc/default/otbr-weband/etc/default/otbr-agentbefore services start, allowing binding to0.0.0.0:80and0.0.0.0:8081instead of127.0.0.1.Current behavior
Results in:
sed: can't read /etc/default/otbr-web: No such file or directoryWorkaround
Using
docker execafter container start works:Question
Why can't the config be modified via entrypoint before services initialize? Is there a proper way to configure OTBR ports in docker-compose?
All reactions