mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

docker安装MQTT报错了

Open lsk5201 opened this issue 1 year ago • 2 comments

2024/2/11 21:37:15 1707658635: Error: Unable to open config file /mosquitto/config/mosquitto.conf.

lsk5201 avatar Feb 11 '24 13:02 lsk5201

The same error on running rootless podman. File persmissions looks good.

podman unshare ls -al /home/joe/MQTT/config/
total 16
drwxr-xr-x 1 1883 1883   94 Mar  6 16:19 .
drwxr-xr-x 1 1883 1883   26 Mar  5 19:32 ..
-rw-r----- 1 1883 1883  630 Mar  5 18:01 aclfile
-rw-r----- 1 1883 1883    6 Mar  6 16:19 mosquitto.conf
-rw-r----- 1 1883 1883 1057 Mar  5 18:29 mosquitto.old
-rw-r----- 1 1883 1883    0 Mar  5 18:01 pskfile
-rw-r----- 1 1883 1883  597 Mar  5 18:01 pwfile
podman run -it --name mosquitto -p 1883:1883 \
-v /home/joe/MQTT/config:/mosquitto/config \
-v /home/joe/MQTT/data:/mosquitto/data \
-v /home/joe/MQTT/log:/mosquitto/log \
eclipse-mosquitto:openssl
1709739091: Error: Unable to open config file /mosquitto/config/mosquitto.conf.

kri164 avatar Mar 06 '24 15:03 kri164