1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Add add-on support for docker sock ro (#635)

* Add add-on support for docker sock ro

* fix
This commit is contained in:
Pascal Vizeli
2018-08-09 00:42:33 +02:00
committed by GitHub
parent 9eee8eade6
commit 78e91e859e
6 changed files with 21 additions and 4 deletions

View File

@@ -222,6 +222,14 @@ class DockerAddon(DockerInterface):
},
})
# Docker API support
if self.addon.with_docker_api:
volumes.update({
"/var/run/docker.sock": {
'bind': "/var/run/docker.sock", 'mode': 'ro'
},
})
# Host dbus system
if self.addon.host_dbus:
volumes.update({