docker: { container: { copyTo: ((__namedParameters: CopyToDockerContainerParams) => Promise<void>); getInfo: ((containerNameOrId: string) => Promise<DockerContainerInfo | undefined>); getLogs: ((containerNameOrId: string,
latestLineCount?: number) => Promise<string>); getStatus: ((containerNameOrId: string) => Promise<DockerContainerStatus>); kill: ((containerNameOrId: string,
options?: PartialWithUndefined<{ keepContainer: boolean; }>) => Promise<void>); run: ((__namedParameters: RunDockerContainerParams) => Promise<void>); runCommand: ((__namedParameters: RunDockerContainerCommandParams) => Promise<ShellOutput>); tryOrKill: (<T>(containerNameOrId: string,
callback: ((containerNameOrId: string) => MaybePromise<T>)) => Promise<Awaited<T>>); waitUntilExited: ((containerNameOrId: string,
failureMessage?: string) => Promise<void>); waitUntilRemoved: ((containerNameOrId: string,
failureMessage?: string) => Promise<void>); waitUntilRunning: ((containerNameOrId: string,
failureMessage?: string) => Promise<void>); }; image: { exists: ((imageName: string) => Promise<boolean>); remove: ((imageName: string) => Promise<void>); update: ((imageName: string,
platform?: string) => Promise<void>); }; isRunning: (() => Promise<boolean>); start: (() => Promise<void>); util: { makeEnvFlags: ((envMapping?: Readonly<Record<string, { allowInterpolation: boolean; value: string; }>>) => string); makePortMapFlags: ((portMapping?: readonly DockerPortMap[]) => string); makeVolumeFlags: ((volumeMapping?: readonly DockerVolumeMap[]) => string); }; } = ... Type declaration
container: {
copyTo: ((__namedParameters: CopyToDockerContainerParams) => Promise<void>);
getInfo: ((containerNameOrId: string) => Promise<DockerContainerInfo | undefined>);
getLogs: ((containerNameOrId: string, latestLineCount?: number) => Promise<string>);
getStatus: ((containerNameOrId: string) => Promise<DockerContainerStatus>);
kill: ((containerNameOrId: string, options?: PartialWithUndefined<{
keepContainer: boolean;
}>) => Promise<void>);
run: ((__namedParameters: RunDockerContainerParams) => Promise<void>);
runCommand: ((__namedParameters: RunDockerContainerCommandParams) => Promise<ShellOutput>);
tryOrKill: (<T>(containerNameOrId: string, callback: ((containerNameOrId: string) => MaybePromise<T>)) => Promise<Awaited<T>>);
waitUntilExited: ((containerNameOrId: string, failureMessage?: string) => Promise<void>);
waitUntilRemoved: ((containerNameOrId: string, failureMessage?: string) => Promise<void>);
waitUntilRunning: ((containerNameOrId: string, failureMessage?: string) => Promise<void>);
}
- (__namedParameters): Promise<void>
Returns Promise<void>
getInfo: ((containerNameOrId: string) => Promise<DockerContainerInfo | undefined>)
- (containerNameOrId): Promise<DockerContainerInfo | undefined>
Parameters
- containerNameOrId: string
getLogs: ((containerNameOrId: string, latestLineCount?: number) => Promise<string>)
- (containerNameOrId, latestLineCount?): Promise<string>
Parameters
- containerNameOrId: string
Optional
latestLineCount: number
Returns Promise<string>
getStatus: ((containerNameOrId: string) => Promise<DockerContainerStatus>)
kill: ((containerNameOrId: string, options?: PartialWithUndefined<{
keepContainer: boolean;
}>) => Promise<void>)
- (containerNameOrId, options?): Promise<void>
Returns Promise<void>
- (__namedParameters): Promise<void>
Returns Promise<void>
tryOrKill: (<T>(containerNameOrId: string, callback: ((containerNameOrId: string) => MaybePromise<T>)) => Promise<Awaited<T>>)
- <T>(containerNameOrId, callback): Promise<Awaited<T>>
Parameters
- containerNameOrId: string
- callback: ((containerNameOrId: string) => MaybePromise<T>)
- (containerNameOrId): MaybePromise<T>
Parameters
- containerNameOrId: string
Returns Promise<Awaited<T>>
waitUntilExited: ((containerNameOrId: string, failureMessage?: string) => Promise<void>)
- (containerNameOrId, failureMessage?): Promise<void>
Parameters
- containerNameOrId: string
Optional
failureMessage: string
Returns Promise<void>
waitUntilRemoved: ((containerNameOrId: string, failureMessage?: string) => Promise<void>)
- (containerNameOrId, failureMessage?): Promise<void>
Parameters
- containerNameOrId: string
Optional
failureMessage: string
Returns Promise<void>
waitUntilRunning: ((containerNameOrId: string, failureMessage?: string) => Promise<void>)
- (containerNameOrId, failureMessage?): Promise<void>
Parameters
- containerNameOrId: string
Optional
failureMessage: string
Returns Promise<void>
image: {
exists: ((imageName: string) => Promise<boolean>);
remove: ((imageName: string) => Promise<void>);
update: ((imageName: string, platform?: string) => Promise<void>);
}
exists: ((imageName: string) => Promise<boolean>)
- (imageName): Promise<boolean>
Returns Promise<boolean>
remove: ((imageName: string) => Promise<void>)
- (imageName): Promise<void>
Returns Promise<void>
update: ((imageName: string, platform?: string) => Promise<void>)
- (imageName, platform?): Promise<void>
Parameters
- imageName: string
Optional
platform: string
Returns Promise<void>
isRunning: (() => Promise<boolean>)
- (): Promise<boolean>
Returns Promise<boolean>
start: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
util: {
makeEnvFlags: ((envMapping?: Readonly<Record<string, {
allowInterpolation: boolean;
value: string;
}>>) => string);
makePortMapFlags: ((portMapping?: readonly DockerPortMap[]) => string);
makeVolumeFlags: ((volumeMapping?: readonly DockerVolumeMap[]) => string);
}
makeEnvFlags: ((envMapping?: Readonly<Record<string, {
allowInterpolation: boolean;
value: string;
}>>) => string)
- (envMapping?): string
Parameters
Optional
envMapping: Readonly<Record<string, {
allowInterpolation: boolean;
value: string;
}>>
Returns string
makePortMapFlags: ((portMapping?: readonly DockerPortMap[]) => string)
- (portMapping?): string
Returns string
makeVolumeFlags: ((volumeMapping?: readonly DockerVolumeMap[]) => string)
- (volumeMapping?): string
Returns string
Centralized Docker API from
@augment-vir/node
.