From 899b4a84095ba0dcfade7857782134a85003c720 Mon Sep 17 00:00:00 2001 From: Thomas Bertels <3265870+tbertels@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:04:01 +0100 Subject: [PATCH] Update cli.md: add dbus access for Raspberry (#28821) Co-authored-by: Stefan Agner Co-authored-by: Franck Nijhof --- source/_includes/installation/container.md | 1 + source/_includes/installation/container/cli.md | 2 ++ source/_includes/installation/container/compose.md | 1 + 3 files changed, 4 insertions(+) diff --git a/source/_includes/installation/container.md b/source/_includes/installation/container.md index f5133d6dfa4..554a30af430 100644 --- a/source/_includes/installation/container.md +++ b/source/_includes/installation/container.md @@ -17,6 +17,7 @@ Installation with Docker is straightforward. Adjust the following command so tha - `/PATH_TO_YOUR_CONFIG` points at the folder where you want to store your configuration and run it. Make sure that you keep the `:/config` part. - `MY_TIME_ZONE` is a [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), like `TZ=America/Los_Angeles`. +- D-Bus is optional but required if you plan to use the [Bluetooth integration](/integrations/bluetooth). {% endif %} diff --git a/source/_includes/installation/container/cli.md b/source/_includes/installation/container/cli.md index 2888b9a2731..17863505ef5 100644 --- a/source/_includes/installation/container/cli.md +++ b/source/_includes/installation/container/cli.md @@ -10,6 +10,7 @@ --restart=unless-stopped \ -e TZ=MY_TIME_ZONE \ -v /PATH_TO_YOUR_CONFIG:/config \ + -v /run/dbus:/run/dbus:ro \ --network=host \ {{ site.installation.container }}:{{ include.tag | default: 'stable' }} ``` @@ -40,6 +41,7 @@ --privileged \ -e TZ=MY_TIME_ZONE \ -v /PATH_TO_YOUR_CONFIG:/config \ + -v /run/dbus:/run/dbus:ro \ --network=host \ {{ site.installation.container }}:{{ include.tag | default: 'stable' }} ``` diff --git a/source/_includes/installation/container/compose.md b/source/_includes/installation/container/compose.md index 0f2ff43cf1c..c4d1391c3f6 100644 --- a/source/_includes/installation/container/compose.md +++ b/source/_includes/installation/container/compose.md @@ -7,6 +7,7 @@ volumes: - /PATH_TO_YOUR_CONFIG:/config - /etc/localtime:/etc/localtime:ro + - /run/dbus:/run/dbus:ro restart: unless-stopped privileged: true network_mode: host