From f484c825a784af63b1cadbbf76f94631a4cf3d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 22 Jun 2021 17:34:12 +0200 Subject: [PATCH] Add privileged to docker commands (#18275) * Add privileged to docker commands * Apply suggestions from code review Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- source/_includes/installation/container/cli.md | 2 ++ source/_includes/installation/container/compose.md | 1 + 2 files changed, 3 insertions(+) diff --git a/source/_includes/installation/container/cli.md b/source/_includes/installation/container/cli.md index d6c810e438ae..4cc80faa35ae 100644 --- a/source/_includes/installation/container/cli.md +++ b/source/_includes/installation/container/cli.md @@ -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 \ diff --git a/source/_includes/installation/container/compose.md b/source/_includes/installation/container/compose.md index eef41dceb71f..4663d3f90026 100644 --- a/source/_includes/installation/container/compose.md +++ b/source/_includes/installation/container/compose.md @@ -8,5 +8,6 @@ - /PATH_TO_YOUR_CONFIG:/config - /etc/localtime:/etc/localtime:ro restart: unless-stopped + privileged: true network_mode: host ``` \ No newline at end of file