fix: Use sudo for skopeo copy for rechunk

This commit is contained in:
Gerald Pinder 2025-03-26 13:02:55 -04:00
parent 7cdb582125
commit 290fbc829b
5 changed files with 56 additions and 21 deletions

View file

@ -1,8 +1,9 @@
use std::{borrow::Cow, path::Path};
use bon::Builder;
use oci_distribution::Reference;
use crate::drivers::types::{ContainerId, Platform};
use crate::drivers::types::{ContainerId, OciDir, Platform};
use super::CompressionType;
@ -66,3 +67,12 @@ pub struct VolumeOpts<'scope> {
#[builder(default)]
pub privileged: bool,
}
#[derive(Debug, Clone, Builder)]
pub struct CopyOciDirOpts<'scope> {
pub oci_dir: &'scope OciDir,
pub registry: &'scope Reference,
#[builder(default)]
pub privileged: bool,
}