pub struct Run {
pub run: Vec<String>,
pub shell: Vec<String>,
pub cache: Vec<Cache>,
pub bind: Vec<Bind>,
pub tmpfs: Vec<TmpFs>,
pub secret: Vec<Secret>,
pub ssh: Vec<Ssh>,
pub network: Option<Network>,
pub security: Option<Security>,
}Expand description
Represents a run command
Fields§
§run: Vec<String>The commands to run
shell: Vec<String>The shell to use for the RUN command See https://docs.docker.com/reference/dockerfile/#shell
cache: Vec<Cache>The cache definitions during the run See https://docs.docker.com/reference/dockerfile/#run—mounttypecache
bind: Vec<Bind>The file system bindings during the run This is used to mount a file or directory from the host into the container only during the run and it’s faster than a copy See https://docs.docker.com/reference/dockerfile/#run—mounttypebind
tmpfs: Vec<TmpFs>This mount type allows mounting tmpfs in the build container.
secret: Vec<Secret>This allows the build container to access secret values, such as tokens or private keys, without baking them into the image. By default, the secret is mounted as a file. You can also mount the secret as an environment variable by setting the env option. See https://docs.docker.com/reference/dockerfile/#run—mounttypesecret
ssh: Vec<Ssh>This allows the build container to access SSH keys via SSH agents, with support for passphrases. See https://docs.docker.com/reference/dockerfile/#run—mounttypessh
network: Option<Network>This allows control over which networking environment the command is run in. See https://docs.docker.com/reference/dockerfile/#run—network
security: Option<Security>The default security mode is sandbox. With security: insecure, the builder runs the command without sandbox in insecure mode, which allows to run flows requiring elevated privileges (e.g. containerd).
See https://docs.docker.com/reference/dockerfile/#run—security
Implementations§
Trait Implementations§
Source§impl Patch<RunPatch> for Run
impl Patch<RunPatch> for Run
Source§fn into_patch(self) -> RunPatch
fn into_patch(self) -> RunPatch
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
previous_struct into SelfSource§fn new_empty_patch() -> RunPatch
fn new_empty_patch() -> RunPatch
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)