mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Change priviliged modus
This commit is contained in:
parent
ae3e2888a9
commit
f9fa058cda
@ -31,6 +31,7 @@ class DockerHomeAssistant(DockerBase):
|
|||||||
self.image,
|
self.image,
|
||||||
name=self.docker_name,
|
name=self.docker_name,
|
||||||
remove=True,
|
remove=True,
|
||||||
|
privileged=True,
|
||||||
network_mode='host',
|
network_mode='host',
|
||||||
restart_policy={
|
restart_policy={
|
||||||
"Name": "always",
|
"Name": "always",
|
||||||
|
@ -8,7 +8,7 @@ SUPERVISOR_CONTAINER_IMAGE_ID=$(docker inspect --format='{{.Image}}' resin_super
|
|||||||
|
|
||||||
runSupervisor() {
|
runSupervisor() {
|
||||||
docker rm --force resin_supervisor || true
|
docker rm --force resin_supervisor || true
|
||||||
docker run --privileged --name resin_supervisor \
|
docker run --name resin_supervisor \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /var/run/hassio-hc.sock:/var/run/hassio-hc.sock \
|
-v /var/run/hassio-hc.sock:/var/run/hassio-hc.sock \
|
||||||
-v /resin-data:/data \
|
-v /resin-data:/data \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user