pub struct ContainerConfigBuilder { /* private fields */ }
Expand description
Builder for ContainerConfig
.
Implementations§
Source§impl ContainerConfigBuilder
impl ContainerConfigBuilder
Sourcepub fn hostname<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hostname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Hostname.
Sourcepub fn domainname<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn domainname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Domainname.
Sourcepub fn user<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
User that will run the command(s) inside the container, also support user:group.
Sourcepub fn attach_stdin<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn attach_stdin<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Attach the standard input, makes possible user interaction.
Sourcepub fn attach_stdout<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn attach_stdout<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Attach the standard output.
Sourcepub fn attach_stderr<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn attach_stderr<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Attach the standard error.
Sourcepub fn exposed_ports<VALUE: Into<Option<PortSet>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn exposed_ports<VALUE: Into<Option<PortSet>>>( &mut self, value: VALUE, ) -> &mut Self
List of exposed ports.
Sourcepub fn tty<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn tty<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
Attach standard streams to a tty, including stdin if it is not closed.
Sourcepub fn open_stdin<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn open_stdin<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Open stdin.
Sourcepub fn stdin_once<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn stdin_once<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
If true, close stdin after the 1 attached client disconnects.
Sourcepub fn env<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn env<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
List of environment variable to set in the container.
Sourcepub fn cmd<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cmd<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Command to run when starting the container.
Sourcepub fn healthcheck<VALUE: Into<Option<HealthConfig>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn healthcheck<VALUE: Into<Option<HealthConfig>>>( &mut self, value: VALUE, ) -> &mut Self
Healthcheck describes how to check the container is healthy.
Sourcepub fn args_escaped<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn args_escaped<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
True if command is already escaped (meaning treat as a command line) (Windows specific).
Sourcepub fn image<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn image<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Name of the image as it was passed by the operator (e.g. could be symbolic).
Sourcepub fn volumes<VALUE: Into<Option<HashMap<String, Value>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn volumes<VALUE: Into<Option<HashMap<String, Value>>>>( &mut self, value: VALUE, ) -> &mut Self
List of volumes (mounts) used for the container.
Sourcepub fn working_dir<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn working_dir<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Current directory (PWD) in the command will be launched.
Sourcepub fn entrypoint<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn entrypoint<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Entrypoint to run when starting the container.
Sourcepub fn network_disabled<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn network_disabled<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Is network disabled.
Sourcepub fn mac_address<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mac_address<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Mac Address of the container.
Sourcepub fn on_build<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn on_build<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
ONBUILD metadata that were defined on the image Dockerfile.
Sourcepub fn labels<VALUE: Into<Option<HashMap<String, String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn labels<VALUE: Into<Option<HashMap<String, String>>>>( &mut self, value: VALUE, ) -> &mut Self
List of labels set to this container.
Sourcepub fn stop_signal<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn stop_signal<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Signal to stop a container.
Sourcepub fn stop_timeout<VALUE: Into<Option<i32>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn stop_timeout<VALUE: Into<Option<i32>>>( &mut self, value: VALUE, ) -> &mut Self
Timeout (in seconds) to stop a container.
Sourcepub fn shell<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn shell<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Shell for shell-form of RUN, CMD, ENTRYPOINT.
Sourcepub fn host_config<VALUE: Into<Option<HostConfig>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn host_config<VALUE: Into<Option<HostConfig>>>( &mut self, value: VALUE, ) -> &mut Self
Container configuration that depends on the host we are running on.
Sourcepub fn networking_config<VALUE: Into<Option<NetworkingConfig>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn networking_config<VALUE: Into<Option<NetworkingConfig>>>( &mut self, value: VALUE, ) -> &mut Self
This container’s networking configuration.
Trait Implementations§
Source§impl Clone for ContainerConfigBuilder
impl Clone for ContainerConfigBuilder
Source§fn clone(&self) -> ContainerConfigBuilder
fn clone(&self) -> ContainerConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more