MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / remove_container

Method remove_container

crates/openshell-driver-podman/src/client.rs:449–457  ·  view source on GitHub ↗

Force-remove a container and its anonymous volumes.

(&self, name: &str)

Source from the content-addressed store, hash-verified

447
448 /// Force-remove a container and its anonymous volumes.
449 pub async fn remove_container(&self, name: &str) -> Result<(), PodmanApiError> {
450 validate_name(name)?;
451 self.request_ok(
452 hyper::Method::DELETE,
453 &format!("/libpod/containers/{name}?force=true&v=true"),
454 None,
455 )
456 .await
457 }
458
459 /// Inspect a container by name or ID.
460 pub async fn inspect_container(&self, name: &str) -> Result<ContainerInspect, PodmanApiError> {

Callers 7

create_sandboxMethod · 0.80
delete_sandboxMethod · 0.80
delete_sandbox_innerMethod · 0.80
run_volume_containerFunction · 0.80

Calls 2

validate_nameFunction · 0.85
request_okMethod · 0.80

Tested by 1

run_volume_containerFunction · 0.64