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: PathBuf
Path 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: bool
Disable the use of the subreaper used to reap reparented processes
no_pivot: bool
Do not use pivot root to jail process inside rootfs
no_new_keyring: bool
Do not create a new session keyring for the container. This will cause the container to inherit the calling processes session key.
preserve_fds: i32
Pass N additional file descriptors to the container (stdio + $LISTEN_FDS + N in total)
keep: bool
§container_id: String
name of the container instance to be started
detach: bool
Detach from the container process
Trait Implementations§
Source§impl Args for Run
impl Args for Run
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§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)
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