fix: Use sudo for skopeo copy for rechunk
This commit is contained in:
parent
7cdb582125
commit
290fbc829b
5 changed files with 56 additions and 21 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue