I’m new to docker and trying to install Eclipse Mosquitto MQTT Broker. Any help is greatly appreciated.
I’m getting the following error when attempting to start the container:
Docker mosquito log:
1775475707: Error: Unable to open config file '/mosquitto/config/mosquitto.conf'.
1775475707: mosquitto version 2.1.2 terminatin
Running Unbutu 24.04
Docker version info:
Server: Docker Desktop 4.62.0 (219486)
Engine:
Version: 29.2.1
API version: 1.53 (minimum version 1.44)
The command I used to install is:
docker run -d --name=mosquitto --restart=always --network=host \
-v /opt/mosquitto/data:/mosquitto/data \
-v /opt/mosquitto/log:/mosquitto/log \
-v /opt/mosquitto/config:/mosquitto/config \
eclipse-mosquitto
I have changed the owner of the /opt/mosquitto,config directory from Root to my account because earlier it said it did not have permissions.From what I can find this is what is needed. Current properties of the mosquitto.conf file are:
-rw-r--r-- 1 ron ron 175 Apr 6 05:29 mosquito.conf