Struct bollard::container::Config [−][src]
Container to create.
Fields
hostname: Option<T>
The hostname to use for the container, as a valid RFC 1123 hostname.
domainname: Option<T>
The domain name to use for the container.
user: Option<T>
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<T, 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<T>>
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<T>>
Command to run specified as a string or an array of strings.
healthcheck: Option<HealthConfig>
A TEST to perform TO Check that the container is healthy.
args_escaped: Option<bool>
Command is already escaped (Windows only)
image: Option<T>
The name of the image to use when creating the container
volumes: Option<HashMap<T, HashMap<(), ()>>>
An object mapping mount point paths inside the container to empty objects.
working_dir: Option<T>
The working directory for commands to run in.
entrypoint: Option<Vec<T>>
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<T>
MAC address of the container.
on_build: Option<Vec<T>>
ONBUILD
metadata that were defined in the image's Dockerfile
.
labels: Option<HashMap<T, T>>
User-defined key/value metadata.
stop_signal: Option<T>
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<T>>
Shell for when RUN
, CMD
, and ENTRYPOINT
uses a shell.
host_config: Option<HostConfig>
Container configuration that depends on the host we are running on.
Shell for when RUN
, CMD
, and ENTRYPOINT
uses a shell.
networking_config: Option<NetworkingConfig<T>>
This container's networking configuration.
Trait Implementations
impl<T: Clone> Clone for Config<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
impl<T: Debug> Debug for Config<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
impl<T: Default> Default for Config<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
impl From<ContainerConfig> for Config<String>
[src]
fn from(container: ContainerConfig) -> Self
[src]
impl<T> Serialize for Config<T> where
T: Into<String> + Eq + Hash,
T: Serialize,
[src]
T: Into<String> + Eq + Hash,
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Config<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Config<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Config<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Config<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Config<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,