restart

suspend fun restart(id: String, signal: String? = null, t: Int? = null): Result<Unit, ErrorResponse>

Restart a container

Return

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

Parameters

id

Container ID or name.

signal

Stop/kill signal; null leaves the daemon default.

t

Seconds to wait before forcibly killing the container; null uses the daemon default.