Struct bollard_stubs::models::ContainerConfig [−][src]
Configuration for a container that is portable between hosts
Fields
hostname: Option<String>
The hostname to use for the container, as a valid RFC 1123 hostname.
domainname: Option<String>
The domain name to use for the container.
user: Option<String>
The user that commands are run as inside the container.
attach_stdin: Option<bool>
Whether to attach to stdin
.
attach_stdout: Option<bool>
Whether to attach to stdout
.
attach_stderr: Option<bool>
Whether to attach to stderr
.
exposed_ports: Option<HashMap<String, HashMap<(), ()>>>
An object mapping ports to an empty object in the form: {\"<port>/<tcp|udp|sctp>\": {}}
tty: Option<bool>
Attach standard streams to a TTY, including stdin
if it is not closed.
open_stdin: Option<bool>
Open stdin
stdin_once: Option<bool>
Close stdin
after one attached client disconnects
env: Option<Vec<String>>
A list of environment variables to set inside the container in the form [\"VAR=value\", ...]
. A variable without =
is removed from the environment, rather than to have an empty value.
cmd: Option<Vec<String>>
Command to run specified as a string or an array of strings.
healthcheck: Option<HealthConfig>
args_escaped: Option<bool>
Command is already escaped (Windows only)
image: Option<String>
The name of the image to use when creating the container/
volumes: Option<HashMap<String, HashMap<(), ()>>>
An object mapping mount point paths inside the container to empty objects.
working_dir: Option<String>
The working directory for commands to run in.
entrypoint: Option<Vec<String>>
The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string ([\"\"]
) then the entry point is reset to system default (i.e., the entry point used by docker when there is no ENTRYPOINT
instruction in the Dockerfile
).
network_disabled: Option<bool>
Disable networking for the container.
mac_address: Option<String>
MAC address of the container.
on_build: Option<Vec<String>>
ONBUILD
metadata that were defined in the image’s Dockerfile
.
labels: Option<HashMap<String, String>>
User-defined key/value metadata.
stop_signal: Option<String>
Signal to stop a container as a string or unsigned integer.
stop_timeout: Option<i64>
Timeout to stop a container in seconds.
shell: Option<Vec<String>>
Shell for when RUN
, CMD
, and ENTRYPOINT
uses a shell.
Trait Implementations
impl Clone for ContainerConfig
[src]
fn clone(&self) -> ContainerConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContainerConfig
[src]
impl Default for ContainerConfig
[src]
fn default() -> ContainerConfig
[src]
impl<'de> Deserialize<'de> for ContainerConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ContainerConfig> for ContainerConfig
[src]
fn eq(&self, other: &ContainerConfig) -> bool
[src]
fn ne(&self, other: &ContainerConfig) -> bool
[src]
impl Serialize for ContainerConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ContainerConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl UnwindSafe for ContainerConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,