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

Method remove_container

src/docker/mod.rs:284–295  ·  view source on GitHub ↗

Remove a container with force option

(&self, container_id: &str)

Source from the content-addressed store, hash-verified

282
283 /// Remove a container with force option
284 async fn remove_container(&self, container_id: &str) -> Result<(), String> {
285 self.client
286 .remove_container(
287 container_id,
288 Some(RemoveContainerOptions {
289 force: true,
290 ..Default::default()
291 }),
292 )
293 .await
294 .map_err(|e| e.to_string())
295 }
296
297 /// Build bind volumes for container
298 fn build_bind_volumes(

Callers 1

run_task_containerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected