rename

suspend fun rename(id: String, name: String): Result<Unit, ErrorResponse>

Rename a container

Return

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

Parameters

id

Container ID or name.

name

New container name, not an existing ID.