The Wayback Machine - https://web.archive.org/web/20260329142739/https://docs.docker.com/reference/api/extensions-sdk/ExecResultV0/
Share feedback
Answers are generated based on the documentation.

Interface: ExecResultV0

Properties

cmd

• Optional Readonly cmd: string


killed

• Optional Readonly killed: boolean


signal

• Optional Readonly signal: string


code

• Optional Readonly code: number


stdout

• Readonly stdout: string


stderr

• Readonly stderr: string

Methods

lines

â–¸ lines(): string[]

Split output lines.

Returns

string[]

The list of lines.


parseJsonLines

â–¸ parseJsonLines(): any[]

Parse each output line as a JSON object.

Returns

any[]

The list of lines where each line is a JSON object.


parseJsonObject

â–¸ parseJsonObject(): any

Parse a well-formed JSON output.

Returns

any

The JSON object.