Skip to content

BjoernSchilberg/docker-alpine-mosquitto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker mosquitto test environment

Start a simple "standard" mosquitto server

docker run --name mosquitto -it -p 1883:1883 eclipse-mosquitto:1.5.8

Start a mosquitto server with SSL and authentication support

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

mosquitto.conf — the configuration file for mosquitto

Change mosquitto password

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 .

Maintenance work in docker environment

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

MQTT Clients

Links

Licenses

  • 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.

About

Docker mosquitto test environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages