outposts: fix docker container not being stopped correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-29 19:16:39 +02:00
parent a1b6e09e8a
commit 5990b8d4de
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class DockerController(BaseController):
container, _ = self._get_container()
if container.status == "running":
container.kill()
container.remove()
container.remove(force=True)
except DockerException as exc:
raise ControllerException(str(exc)) from exc