Files

17 lines
647 B
TypeScript

import Docker from 'dockerode';
import type { Step, DockerExecResult } from './types.js';
export declare class DockerManager {
docker: Docker;
constructor();
pullImage(image: string): Promise<void>;
createContainer(image: string, options: {
workspace: string;
env: Record<string, string>;
workingDir?: string;
}): Promise<string>;
execInContainer(containerId: string, step: Step, modifiedCommand?: string): Promise<DockerExecResult>;
private runShell;
stopContainer(containerId: string): Promise<void>;
imageExists(image: string): Promise<boolean>;
}
//# sourceMappingURL=docker.d.ts.map