Install Docker

Update the repo to get latest versions

sudo apt update

Install the latest version

sudo apt install docker.io

Set Docker to start on startup

sudo systemctl enable --now docker

Give your user permissions to docker, replacing user with your username

sudo usermod -aG docker user

Test it has installed correctly by getting the docker version

docker --version

Installing Diun

Run the following command to create the docker container. The items relating to mqtt are "DIUN_NOTIF_MQTT_HOST=localhost", "DIUN_NOTIF_MQTT_TOPIC=duin/update" and "DIUN_NOTIF_MQTT_CLIENT=duin".

docker run -d --name diun -e "TZ=Europe/London" -e "LOG_LEVEL=info" -e "LOG_JSON=false" -e "DIUN_WATCH_WORKERS=20" -e "DIUN_WATCH_SCHEDULE=0 */6 * * *" -e "DIUN_PROVIDERS_DOCKER=true" -e "DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true" -e "DIUN_NOTIF_MQTT_SCHEME=mqtt" -e "DIUN_NOTIF_MQTT_HOST=localhost" -e "DIUN_NOTIF_MQTT_TOPIC=duin/update" -e "DIUN_NOTIF_MQTT_CLIENT=duin" -v "$(pwd)/data:/data" -v "/var/run/docker.sock:/var/run/docker.sock" -l "diun.enable=true" -l "diun.watch_repo=true" crazymax/diun:latest