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

Method start_container

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

Start a container by name or ID.

(&self, name: &str)

Source from the content-addressed store, hash-verified

412
413 /// Start a container by name or ID.
414 pub async fn start_container(&self, name: &str) -> Result<(), PodmanApiError> {
415 validate_name(name)?;
416 self.request_ok(
417 hyper::Method::POST,
418 &format!("/libpod/containers/{name}/start"),
419 None,
420 )
421 .await
422 }
423
424 /// Stop a container with a grace period in seconds.
425 pub async fn stop_container(

Callers 4

create_sandboxMethod · 0.80
resume_sandboxMethod · 0.80
run_created_containerFunction · 0.80

Calls 2

validate_nameFunction · 0.85
request_okMethod · 0.80

Tested by 1

run_created_containerFunction · 0.64