Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeat bug: docker eclipse-mosquitto:2.0 Error: Address not available #2865

Open
ppbrown opened this issue Jul 30, 2023 · 1 comment
Open

Comments

@ppbrown
Copy link

ppbrown commented Jul 30, 2023

you guys seem to have reintroduced this bug:
#2040

According to some of the writeup there, if I specify a config of

listener 1883
allow_anonymous true

it should work. but it does not.
The container still keeps throwing

Error: Address not available

There was one guy there who put up a config file that supposedly worked.. but it has all kinds of EXTRA things, that people may not want to use.
We need a concise config file with the minimum that is expected to work, for a container accepting connections from outside itself.

@ppbrown
Copy link
Author

ppbrown commented Jul 30, 2023

oh, i guess I need to amend my bug report.
The instructions to override config at
https://hub.docker.com/_/eclipse-mosquitto
dont work any more.
If I use -v mosquitto.conf:/mosquitto/config/mosquitto.conf
docker complains

docker: Error response from daemon: source /data/var/lib/docker/overlay2/bc24437b89cc635e49cc1d580578c7a4bd480492e639e632494637d1e9fba0/merged/mosquitto/config/mosquitto.conf is not directory.

If I try to work around this with a directory overlay strategy, with

-v configdir:/mosquitto/config/

it STARTS UP.. but it does not actually overlay the directory.

So this is more of a "documentation is broken" bug report.

ACTUAL FIX:

Create file with just

allow_anonymous true
listener 1883

and then run container with FULL PATH to config override. So,

docker run -d --name mosquitto -p 1883:1883 \
  -v $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf  eclipse-mosquitto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant