Add privileged to docker commands (#18275)

* Add privileged to docker commands

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Joakim Sørensen 2021-06-22 17:34:12 +02:00 committed by GitHub
parent 6699c0d49f
commit f484c825a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
```bash
docker run --init -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-v /etc/localtime:/etc/localtime:ro \
-v /PATH_TO_YOUR_CONFIG:/config \
@ -36,6 +37,7 @@
docker run --init -d \
--name homeassistant \
--restart=unless-stopped \
--privileged \
-v /PATH_TO_YOUR_CONFIG:/config \
-v /etc/localtime:/etc/localtime:ro \
--network=host \

View File

@ -8,5 +8,6 @@
- /PATH_TO_YOUR_CONFIG:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
```