Function run
Source pub fn run(
image: &str,
name: Option<&str>,
detach: bool,
ports: Option<&[&str]>,
snapshotter: Option<&str>,
) -> Result<CommandResult, NerdctlError>
Expand description
Run a container from an image
§Arguments
image - Image to run
name - Optional name for the container
detach - Whether to run in detached mode
ports - Optional port mappings
snapshotter - Optional snapshotter to use
§Returns
Result<CommandResult, NerdctlError> - Command result or error