MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / kill_container

Method kill_container

src/context/docker_client.rs:549–554  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

547 }
548
549 async fn kill_container(&self, id: &str) -> Result<(), String> {
550 self.docker
551 .kill_container(id, None::<bollard::query_parameters::KillContainerOptions>)
552 .await
553 .map_err(|e| format!("Failed to kill container: {e}"))
554 }
555
556 async fn logs(&self, id: &str, options: Option<LogsOptions>) -> Result<String, String> {
557 let mut stream = self.docker.logs(id, options);

Callers 3

executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected