标签:mod dock index docker des text nta docke plain
1.
docker pull eclipse-mosquitto
2.
mkdir
-p /mosquitto/config
mkdir
-p /mosquitto/data
mkdir
-p /mosquitto/log
vi /mosquitto/config/mosquitto.conf
persistence true
persistence_location /mosquitto/data
log_dest file /mosquitto/log/mosquitto.log
chmod
-R 755 /mosquitto
chmod
-R 777 /mosquitto/log
docker run -d --name=mosquitto --privileged \
-p 1883:1883 -p 9001:9001 \
-v /mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf \
-v /mosquitto/data:/mosquitto/data \
-v /mosquitto/log:/mosquitto/log \
eclipse-mosquitto
标签:mod dock index docker des text nta docke plain
原文地址:https://www.cnblogs.com/sunnykwan/p/12930037.html