Giter Site home page Giter Site logo

docker-alpine-mosquitto's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.