From f3f51b165a12c3cee40a9b6e2161dd88d15daa52 Mon Sep 17 00:00:00 2001 From: Mirco Date: Fri, 1 Dec 2023 11:18:02 +0100 Subject: [PATCH] use execution_api for self checking docker image --- src/main/python/ddadevops/infrastructure/infrastructure.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index 4a65c63..9712b7f 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -58,10 +58,8 @@ class ImageApi: ) def drun(self, name: str): - run( - f'docker run -it --entrypoint="" {name} /bin/bash', - shell=True, - check=True, + self.execution_api.execute( + f'docker run -it --entrypoint="" {name} /bin/bash' ) def dockerhub_login(self, username: str, password: str):