docker pull zlee/mqtt:latest
docker run -d --name="mqtt" -h="mqtt" -p 1883:1883 zlee/mqtt:latest
docker exec -it mqtt bash
vi /etc/mosquitto/mosquitto.conf
allow_anonymous false password_file /etc/mosquitto/pwfile
mosquitto_passwd -c /etc/mosquitto/pwfile hass
docker restart mqtt
mosquitto_sub -d -u mqtt -P mqtt -t dev/test mosquitto_pub -d -u mqtt -P mqtt -t dev/test -m "hello world"