startAndForget

suspend fun startAndForget(id: String, config: ExecStartConfig = ExecStartConfig()): Result<Unit, ErrorResponse>

Starts an existing exec instance using the supplied configuration and discards response output. Set config.detach=true for detached execution; use startInteractive when output is needed. Successful start does not establish the command exit status; inspect it with getInfo.

Return

Operation response on success, or the Docker error response. Transport failures and cancellation can throw.

Parameters

id

Exec instance ID returned by Containers.execCreate.

config

Configuration sent to Docker as JSON.