Hub with Docker
Install, update and uninstall Hub in one place.
Install
Before you start, install Docker and make sure it is running. These commands work in PowerShell, macOS Terminal or a Linux shell.
Start Hub with Docker
PowerShell or terminalCheck that it is running (look for “Up”)
Open Hub and connect to your broker
http://localhost:8080Use the address of the computer running Docker if it is on another machine.
To connect to a broker on the Docker host, use host.docker.internal on Docker Desktop, or the host’s network address on Linux. Enter MQTT port 1883 and your broker credentials. In the Docker version of Hub, localhost refers to its own container.
Update
Back up your configuration and saved data before updating. Plan for a brief interruption while Hub restarts.
Pull the latest Hub image
Remove the old container, keeping its named data volume. Then run the start command in the Install section again. If you customized ports, environment variables or volumes, reuse those settings.
Stop and remove the old container (keeps saved data)
Uninstall
Back up any data you want to keep before removing the application.
Stop and remove the container. These commands keep its named data volume so you can reinstall later. Use your own container name if you changed it.
Remove the Hub container
Optional: after removing the container, permanently delete its saved data. Back up the volume first. Only run the command for data you want to erase.
Permanently delete Hub data
Removing Hub does not uninstall your broker.