outposts: fix docker container not being stopped correctly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
a1b6e09e8a
commit
5990b8d4de
|
@ -145,7 +145,7 @@ class DockerController(BaseController):
|
||||||
container, _ = self._get_container()
|
container, _ = self._get_container()
|
||||||
if container.status == "running":
|
if container.status == "running":
|
||||||
container.kill()
|
container.kill()
|
||||||
container.remove()
|
container.remove(force=True)
|
||||||
except DockerException as exc:
|
except DockerException as exc:
|
||||||
raise ControllerException(str(exc)) from exc
|
raise ControllerException(str(exc)) from exc
|
||||||
|
|
||||||
|
|
Reference in New Issue