From a4f27a7e246e9a3035c4601189c7e408a0c7b5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 22 Jun 2021 15:24:56 +0000 Subject: [PATCH 1/2] Add privileged to docker commands --- 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 0f9c792793b3..56b48a9777d2 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=true \ --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=true \ -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 db5a16953efb..e24e8e650e34 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 From 3138ce5200a786a34762ee08cfb29130b4e5a439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 22 Jun 2021 17:29:45 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Franck Nijhof --- source/_includes/installation/container/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_includes/installation/container/cli.md b/source/_includes/installation/container/cli.md index 56b48a9777d2..5db2785daf15 100644 --- a/source/_includes/installation/container/cli.md +++ b/source/_includes/installation/container/cli.md @@ -6,7 +6,7 @@ ```bash docker run --init -d \ --name homeassistant \ - --privileged=true \ + --privileged \ --restart=unless-stopped \ -v /etc/localtime:/etc/localtime:ro \ -v /PATH_TO_YOUR_CONFIG:/config \ @@ -37,7 +37,7 @@ docker run --init -d \ --name homeassistant \ --restart=unless-stopped \ - --privileged=true \ + --privileged \ -v /PATH_TO_YOUR_CONFIG:/config \ -v /etc/localtime:/etc/localtime:ro \ --network=host \