Skip to main content

stop_service

Function stop_service 

Source
pub async fn stop_service(
    client: &DockerClient,
    remove: bool,
    timeout_secs: Option<i64>,
) -> Result<(), DockerError>
Expand description

Stop and optionally remove the opencode container

ยงArguments

  • client - Docker client
  • remove - Also remove the container after stopping
  • timeout_secs - Graceful shutdown timeout (default: 30 seconds)