Update cli.md: add dbus access for Raspberry (#28821)

Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Thomas Bertels 2023-11-24 11:04:01 +01:00 committed by GitHub
parent bafd597615
commit 899b4a8409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -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 %}

View File

@ -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' }}
```

View File

@ -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