pub async fn stop_container(
client: &DockerClient,
name: &str,
timeout_secs: Option<i64>,
) -> Result<(), DockerError>Expand description
Stop a running container with graceful shutdown
ยงArguments
client- Docker clientname- Container nametimeout_secs- Seconds to wait before force kill (default: 10)