Force-remove a container and its anonymous volumes.
(&self, name: &str)
| 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> { |