|
|
@ -314,16 +314,16 @@ class ComposeContainer:
|
|
|
|
def exec_cmd(
|
|
|
|
def exec_cmd(
|
|
|
|
self, command: CommandArgs, workdir: Optional[str] = None
|
|
|
|
self, command: CommandArgs, workdir: Optional[str] = None
|
|
|
|
) -> CommandArgs:
|
|
|
|
) -> CommandArgs:
|
|
|
|
return CommandArgs(
|
|
|
|
return combine_cmds(
|
|
|
|
PODMAN_EXEC
|
|
|
|
PODMAN_EXEC,
|
|
|
|
+ [
|
|
|
|
[
|
|
|
|
"container",
|
|
|
|
"container",
|
|
|
|
"exec",
|
|
|
|
"exec",
|
|
|
|
"--interactive=false",
|
|
|
|
"--interactive=false",
|
|
|
|
None if workdir is None else f"--workdir={workdir}",
|
|
|
|
None if workdir is None else f"--workdir={workdir}",
|
|
|
|
self.container_name,
|
|
|
|
self.container_name,
|
|
|
|
]
|
|
|
|
],
|
|
|
|
+ command
|
|
|
|
command,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|