MCPcopy Create free account
hub / github.com/bootc-dev/bootc / new_image_cmd

Method new_image_cmd

crates/lib/src/podstorage.rs:219–224  ·  view source on GitHub ↗

Create a `podman image` Command instance prepared to operate on our alternative root.

(&self)

Source from the content-addressed store, hash-verified

217 /// Create a `podman image` Command instance prepared to operate on our alternative
218 /// root.
219 pub(crate) fn new_image_cmd(&self) -> Result<Command> {
220 let mut r = new_podman_cmd_in(&self.sysroot, &self.storage_root, &self.run)?;
221 // We want to limit things to only manipulating images by default.
222 r.arg("image");
223 Ok(r)
224 }
225
226 fn init_globals() -> Result<()> {
227 // Ensure our global storage alias dir exists

Callers 5

list_imagesMethod · 0.80
prune_except_rootsMethod · 0.80
existsMethod · 0.80
pullMethod · 0.80
imgcmd_entrypointFunction · 0.80

Calls 2

new_podman_cmd_inFunction · 0.85
argMethod · 0.80

Tested by

no test coverage detected