update

suspend fun update(id: String, config: ContainerUpdateRequest): Result<ContainerUpdateResponse, ErrorResponse>

Updates supported resource limits and restart policy. Changing image, environment, ports or mounts requires recreating the container; this method does not perform that workflow.

Return

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

Parameters

id

Container ID or name.

config

Configuration sent to Docker as JSON.