mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
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:
parent
6699c0d49f
commit
f484c825a7
@ -6,6 +6,7 @@
|
|||||||
```bash
|
```bash
|
||||||
docker run --init -d \
|
docker run --init -d \
|
||||||
--name homeassistant \
|
--name homeassistant \
|
||||||
|
--privileged \
|
||||||
--restart=unless-stopped \
|
--restart=unless-stopped \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
-v /PATH_TO_YOUR_CONFIG:/config \
|
-v /PATH_TO_YOUR_CONFIG:/config \
|
||||||
@ -36,6 +37,7 @@
|
|||||||
docker run --init -d \
|
docker run --init -d \
|
||||||
--name homeassistant \
|
--name homeassistant \
|
||||||
--restart=unless-stopped \
|
--restart=unless-stopped \
|
||||||
|
--privileged \
|
||||||
-v /PATH_TO_YOUR_CONFIG:/config \
|
-v /PATH_TO_YOUR_CONFIG:/config \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
--network=host \
|
--network=host \
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
- /PATH_TO_YOUR_CONFIG:/config
|
- /PATH_TO_YOUR_CONFIG:/config
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
network_mode: host
|
network_mode: host
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user