* Run a Docker CLI command and return result. * Unlike execAsync, this always resolves (never rejects) and returns exit code.
( command: string, timeoutMs = 30000, abortSignal?: AbortSignal )
| 135 | * Unlike execAsync, this always resolves (never rejects) and returns exit code. |
| 136 | */ |
| 137 | function runDockerCommand( |
| 138 | command: string, |
| 139 | timeoutMs = 30000, |
| 140 | abortSignal?: AbortSignal |
| 141 | ): Promise<DockerCommandResult> { |
| 142 | return runCommand(command, [], { timeoutMs, shell: true, abortSignal }); |
| 143 | } |
| 144 | |
| 145 | /** Run a command with array args to avoid shell interpolation for host/container paths. */ |
| 146 | function runSpawnCommand( |
no test coverage detected