outposts: only kill docker container if its running
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2a9feafb90
commit
3dcd67c1a3
|
@ -134,6 +134,7 @@ class DockerController(BaseController):
|
|||
def down(self):
|
||||
try:
|
||||
container, _ = self._get_container()
|
||||
if container.status == "running":
|
||||
container.kill()
|
||||
container.remove()
|
||||
except DockerException as exc:
|
||||
|
|
Reference in New Issue