24 lines
704 B
TypeScript
24 lines
704 B
TypeScript
interface DockerContainerStatus {
|
|
running: boolean;
|
|
status: string;
|
|
exitCode?: number;
|
|
error?: string;
|
|
}
|
|
/**
|
|
* Check if a container is running via Docker socket proxy.
|
|
*/
|
|
declare function getContainerStatus(containerName: string): Promise<DockerContainerStatus>;
|
|
/**
|
|
* Restart/recreate a container using docker compose.
|
|
* This ensures environment variables are picked up.
|
|
*/
|
|
declare function restartContainer(containerName: string): Promise<{
|
|
success: boolean;
|
|
output: string;
|
|
}>;
|
|
export declare const dockerService: {
|
|
getContainerStatus: typeof getContainerStatus;
|
|
restartContainer: typeof restartContainer;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=docker.service.d.ts.map
|