Skip to main content

stop_container

Function stop_container 

Source
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 client
  • name - Container name
  • timeout_secs - Seconds to wait before force kill (default: 10)