use execution_api for self checking docker image

This commit is contained in:
Mirco 2023-12-01 11:18:02 +01:00
parent 36df9f486b
commit f3f51b165a

View file

@ -58,10 +58,8 @@ class ImageApi:
) )
def drun(self, name: str): def drun(self, name: str):
run( self.execution_api.execute(
f'docker run -it --entrypoint="" {name} /bin/bash', f'docker run -it --entrypoint="" {name} /bin/bash'
shell=True,
check=True,
) )
def dockerhub_login(self, username: str, password: str): def dockerhub_login(self, username: str, password: str):