From b35e62e5ae5e0f1604a7b47254ada2f6ebdf1939 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 15 Aug 2021 18:10:49 +0200 Subject: [PATCH] outposts: don't start docker container for embedded outpost Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index 3412e9587..09408c8ba 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -102,6 +102,8 @@ class DockerController(BaseController): # pylint: disable=too-many-return-statements def up(self): + if self.outpost.managed != "": + return None try: container, has_been_created = self._get_container() if has_been_created: @@ -165,6 +167,8 @@ class DockerController(BaseController): raise ControllerException(str(exc)) from exc def down(self): + if self.outpost.managed != "": + return None try: container, _ = self._get_container() if container.status == "running":