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

NO_AUTHENTICATION option does not work #2119

Closed
fenduru opened this issue Mar 7, 2021 · 1 comment
Closed

NO_AUTHENTICATION option does not work #2119

fenduru opened this issue Mar 7, 2021 · 1 comment

Comments

@fenduru
Copy link

fenduru commented Mar 7, 2021

#2040 looks like it was supposed to be fixed. From the docs, I run the following command:

docker run -it -p 1883:1883 -e NO_AUTHENTICATION=1 eclipse-mosquitto:2.0.8

However this results in behavior identical to if I did not pass NO_AUTHENTICATION=1

$ docker run -it -p 1883:1883 -e NO_AUTHENTICATION=1 eclipse-mosquitto:2.0.8
1615145236: mosquitto version 2.0.8 starting
1615145236: Config loaded from /mosquitto/config/mosquitto.conf.
1615145236: Starting in local only mode. Connections will only be possible from clients running on this machine.
1615145236: Create a configuration file which defines a listener to allow remote access.
1615145236: Opening ipv4 listen socket on port 1883.
1615145236: Opening ipv6 listen socket on port 1883.
1615145236: Error: Address not available
1615145236: mosquitto version 2.0.8 running
@ralight
Copy link
Contributor

ralight commented Mar 7, 2021

The use of an environment variable was rejected by docker, but you can use the no authentication configuration that is provided:

docker run -it -p 1883:1883 eclipse-mosquitto:<version> mosquitto -c /mosquitto-no-auth.conf

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

No branches or pull requests

2 participants