Create a container from a JSON spec.
(&self, spec: &Value)
| 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> { |