How to install mosquitto

Hi there!

I need help with installing mosquitto to my openhab.
The tutorials says, just only execute “sudo openhabian-config” and install it from “Optional components”
But my openhab running from docker, and after executing sudo openhabian-config, gives me: command not found.
What can i do now?

You would need to explain your setup first.
It’s either Docker or openHABian.

Mind this please

Hi Markus,
Its a docker, installed from here: https://hub.docker.com/r/openhab/openhab/
version: 2.5.10

I tried install it with command: apt-get install mosquitto, but service cant start:
root@SimpleNAS:/openhab# service mosquitto status
[FAIL] mosquitto is not running … failed!

root@SimpleNAS:/openhab# service mosquitto restart
[ ok ] Restarting network daemon:: mosquitto.

root@SimpleNAS:/openhab# service mosquitto status
[FAIL] mosquitto is not running … failed!

You need to run Mosquitto in a separate container. https://hub.docker.com/_/eclipse-mosquitto

A Docker container is not a VM. A Docker container is not like installed software either. You don’t control them through service or systemd or the like. You control them using the docker command. If you plan on using Docker, you would do well to go read about some of the basics for how containers work.