pub fn image_commit(
container: &str,
image_name: &str,
format: Option<&str>,
squash: bool,
rm: bool,
) -> Result<CommandResult, BuildahError>Expand description
Commit a container to an image
§Arguments
container- Container ID or nameimage_name- New name for the imageformat- Optional, format to use for the image (oci or docker)squash- Whether to squash layersrm- Whether to remove the container after commit
§Returns
- Result with command output or error