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

Method create_container

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

Create a container from a JSON spec.

(&self, spec: &Value)

Source from the content-addressed store, hash-verified

406
407 /// Create a container from a JSON spec.
408 pub async fn create_container(&self, spec: &Value) -> Result<Value, PodmanApiError> {
409 self.request_json(hyper::Method::POST, "/libpod/containers/create", Some(spec))
410 .await
411 }
412
413 /// Start a container by name or ID.
414 pub async fn start_container(&self, name: &str) -> Result<(), PodmanApiError> {

Callers 5

create_sandboxMethod · 0.80
run_volume_containerFunction · 0.80

Calls 1

request_jsonMethod · 0.80

Tested by 1

run_volume_containerFunction · 0.64