mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Fix commands
This commit is contained in:
parent
04a03318f6
commit
ef6777ca95
@ -33,11 +33,13 @@ class DockerHomeAssistant(DockerBase):
|
|||||||
|
|
||||||
api_endpoint = get_local_ip(self.loop)
|
api_endpoint = get_local_ip(self.loop)
|
||||||
|
|
||||||
|
# cleanup old container
|
||||||
|
self._stop()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.container = self.dock.containers.run(
|
self.container = self.dock.containers.run(
|
||||||
self.image,
|
self.image,
|
||||||
name=self.docker_name,
|
name=self.docker_name,
|
||||||
remove=True,
|
|
||||||
detach=True,
|
detach=True,
|
||||||
privileged=True,
|
privileged=True,
|
||||||
network_mode='host',
|
network_mode='host',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user