Skip to content

Commit

Permalink
Add privileged to docker commands (#18275)
Browse files Browse the repository at this point in the history
* Add privileged to docker commands

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <[email protected]>

Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
ludeeus and frenck authored Jun 22, 2021
1 parent 6699c0d commit f484c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/_includes/installation/container/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions source/_includes/installation/container/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
- /PATH_TO_YOUR_CONFIG:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
```

0 comments on commit f484c82

Please sign in to comment.