docker run --name mosquitto -it -p 1883:1883 eclipse-mosquitto:1.5.8
docker run --name mosquitto -it -p 8883:8883 -v $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf -v $PWD/certs:/mosquitto/certs -v $PWD/password_file:/mosquitto/config/password_file eclipse-mosquitto:1.5.8
In docker container mosquitto
.
mosquitto_passwd -c /mosquitto/config/password_file testuser
Copy password_file
to docker host.
docker cp mosquitto:/mosquitto/config/password_file .
Access a running instance.
docker exec -ti mosquitto /bin/ash
Access a running instance as root.
docker exec -u root -ti mosquitto /bin/ash
Remove all containers.
docker rm $(docker ps -a -q)
Delete all untagged images.
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
Delete all unused volumes.
docker volume prune
- https://mosquitto.org/man/mosquitto_pub-1.html (client for publishing simple messages)
- http://mqttfx.org
- https://kamilfb.github.io/mqtt-spy/
- https://hobbyquaker.github.io/mqtt-admin/ (websocket test client)
- https://github.com/hivemq/hivemq-mqtt-web-client (websocket test client)
- https://play.google.com/store/apps/details?id=at.tripwire.mqtt.client
-
Eclipse Mosquitto Docker Image
- Eclipse Mosquitto is released under the EPL/EDL.
- Docker's open source components are generally licensed under the Apache 2.0 license.
- All written documents in this repo are licensed under CC0
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user’s responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.