pub struct DockerRuntimeConfig {Show 15 fields
pub image: String,
pub entrypoint: Option<String>,
pub command: Option<Vec<String>>,
pub volumes: Vec<String>,
pub working_dir: Option<String>,
pub environment: Vec<String>,
pub memory: Option<String>,
pub cpus: Option<String>,
pub network: String,
pub rm: bool,
pub user: Option<String>,
pub gpus: Option<String>,
pub read_only: bool,
pub platform: Option<String>,
pub extra_args: Vec<String>,
}Expand description
Docker runtime configuration
Fields§
§image: StringDocker image to use (e.g., “python:3.11-slim”, “jrottenberg/ffmpeg:5-alpine”)
entrypoint: Option<String>Container entrypoint (overrides image default)
command: Option<Vec<String>>Command to run (overrides image CMD)
volumes: Vec<String>Volume mounts in “host:container” format Supports env var expansion: “${SKILL_WORKDIR}:/workdir”
working_dir: Option<String>Working directory inside container
environment: Vec<String>Environment variables (KEY=value format)
memory: Option<String>Memory limit (e.g., “512m”, “1g”, “2048m”)
cpus: Option<String>CPU limit (e.g., “0.5”, “2”, “1.5”)
network: StringNetwork mode: none, bridge, host (default: none for security)
rm: boolRemove container after execution (default: true)
user: Option<String>User to run as (uid:gid format, e.g., “1000:1000” or “node”)
gpus: Option<String>GPU access (“all” or device IDs like “0,1”) Requires nvidia-container-runtime
read_only: boolRead-only root filesystem (default: false)
platform: Option<String>Platform for multi-arch images (e.g., “linux/amd64”, “linux/arm64”)
extra_args: Vec<String>Additional docker run arguments (advanced use)
Trait Implementations§
Source§impl Clone for DockerRuntimeConfig
impl Clone for DockerRuntimeConfig
Source§fn clone(&self) -> DockerRuntimeConfig
fn clone(&self) -> DockerRuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DockerRuntimeConfig
impl Debug for DockerRuntimeConfig
Source§impl Default for DockerRuntimeConfig
impl Default for DockerRuntimeConfig
Source§impl<'de> Deserialize<'de> for DockerRuntimeConfig
impl<'de> Deserialize<'de> for DockerRuntimeConfig
Source§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>,
Auto Trait Implementations§
impl Freeze for DockerRuntimeConfig
impl RefUnwindSafe for DockerRuntimeConfig
impl Send for DockerRuntimeConfig
impl Sync for DockerRuntimeConfig
impl Unpin for DockerRuntimeConfig
impl UnwindSafe for DockerRuntimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().