Skip to content

Commit 7393ca1

Browse files
Ronald Jäpelhannahlanzrath
authored andcommitted
Fix: update run method in DockerAdapter
1 parent 5db7d71 commit 7393ca1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cadetrdm/container/dockerAdapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def _run_command(self, full_command, image, mounts=None):
8282
for host_path, container_path in mounts.items():
8383
volumes[host_path.absolute().as_posix()] = {'bind': container_path, 'mode': 'ro'}
8484

85-
container = self.client.containers.run_yml(
85+
container = self.client.containers.run(
8686
image=image,
87-
command=full_command,
87+
command=f"bash -c '{full_command}'",
8888
volumes=volumes,
8989
detach=True,
9090
remove=False

0 commit comments

Comments
 (0)