Struct liboci_cli::Run
source · pub struct Run {
pub bundle: PathBuf,
pub console_socket: Option<PathBuf>,
pub pid_file: Option<PathBuf>,
pub no_subreaper: bool,
pub no_pivot: bool,
pub no_new_keyring: bool,
pub preserve_fds: i32,
pub keep: bool,
pub container_id: String,
pub detach: bool,
}Expand description
Create a container and immediately start it
Fields§
§bundle: PathBufPath to the bundle directory, containing config.json and root filesystem
console_socket: Option<PathBuf>Unix socket (file) path , which will receive file descriptor of the writing end of the pseudoterminal
pid_file: Option<PathBuf>File to write pid of the container created
no_subreaper: boolDisable the use of the subreaper used to reap reparented processes
no_pivot: boolDo not use pivot root to jail process inside rootfs
no_new_keyring: boolDo not create a new session keyring for the container. This will cause the container to inherit the calling processes session key.
preserve_fds: i32Pass N additional file descriptors to the container (stdio + $LISTEN_FDS + N in total)
keep: bool§container_id: Stringname of the container instance to be started
detach: boolDetach from the container process
Trait Implementations§
source§impl CommandFactory for Run
impl CommandFactory for Run
source§impl FromArgMatches for Run
impl FromArgMatches for Run
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for Run
impl Parser for Run
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more