Struct oci_spec::runtime::Process [−][src]
pub struct Process {Show 13 fields
pub terminal: Option<bool>,
pub console_size: Option<Box>,
pub user: User,
pub args: Option<Vec<String>>,
pub command_line: Option<String>,
pub env: Option<Vec<String>>,
pub cwd: PathBuf,
pub capabilities: Option<LinuxCapabilities>,
pub rlimits: Option<Vec<LinuxRlimit>>,
pub no_new_privileges: Option<bool>,
pub apparmor_profile: Option<String>,
pub oom_score_adj: Option<i32>,
pub selinux_label: Option<String>,
}
Expand description
Process contains information to start a specific application inside the container.
Fields
terminal: Option<bool>
Terminal creates an interactive terminal for the container.
console_size: Option<Box>
ConsoleSize specifies the size of the console.
user: User
User specifies user information for the process.
args: Option<Vec<String>>
Args specifies the binary and arguments for the application to execute.
command_line: Option<String>
CommandLine specifies the full command line for the application to execute on Windows.
env: Option<Vec<String>>
Env populates the process environment for the process.
cwd: PathBuf
Cwd is the current working directory for the process and must be relative to the container’s root.
capabilities: Option<LinuxCapabilities>
Capabilities are Linux capabilities that are kept for the process.
rlimits: Option<Vec<LinuxRlimit>>
Rlimits specifies rlimit options to apply to the process.
no_new_privileges: Option<bool>
NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
apparmor_profile: Option<String>
ApparmorProfile specifies the apparmor profile for the container.
oom_score_adj: Option<i32>
Specify an oom_score_adj for the container.
selinux_label: Option<String>
SelinuxLabel specifies the selinux context that the container process is run as.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Process
impl UnwindSafe for Process
Blanket Implementations
Mutably borrows from an owned value. Read more