pub struct ContainerArgsBuilder<___State = __ContainerArgsBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
sourcepub fn build_struct(self) -> ContainerArgswhere
__Attach: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__attach>,
__Capabilities: IntoSet<Option<Output<Option<ContainerCapabilities>>>, ContainerArgsBuilder__capabilities>,
__CgroupnsMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__cgroupns_mode>,
__Command: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__command>,
__ContainerReadRefreshTimeoutMilliseconds: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__container_read_refresh_timeout_milliseconds>,
__CpuSet: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__cpu_set>,
__CpuShares: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__cpu_shares>,
__DestroyGraceSeconds: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__destroy_grace_seconds>,
__Devices: IntoSet<Option<Output<Option<Vec<ContainerDevice>>>>, ContainerArgsBuilder__devices>,
__Dns: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns>,
__DnsOpts: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns_opts>,
__DnsSearches: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns_searches>,
__Domainname: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__domainname>,
__Entrypoints: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__entrypoints>,
__Envs: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__envs>,
__Gpus: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__gpus>,
__GroupAdds: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__group_adds>,
__Healthcheck: IntoSet<Option<Output<Option<ContainerHealthcheck>>>, ContainerArgsBuilder__healthcheck>,
__Hostname: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__hostname>,
__Hosts: IntoSet<Option<Output<Option<Vec<ContainerHost>>>>, ContainerArgsBuilder__hosts>,
__Image: IntoSet<Output<String>, ContainerArgsBuilder__image>,
__Init: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__init>,
__IpcMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__ipc_mode>,
__Labels: IntoSet<Option<Output<Option<Vec<ContainerLabel>>>>, ContainerArgsBuilder__labels>,
__LogDriver: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__log_driver>,
__LogOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__log_opts>,
__Logs: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__logs>,
__MaxRetryCount: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__max_retry_count>,
__Memory: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__memory>,
__MemorySwap: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__memory_swap>,
__Mounts: IntoSet<Option<Output<Option<Vec<ContainerMount>>>>, ContainerArgsBuilder__mounts>,
__MustRun: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__must_run>,
__Name: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__name>,
__NetworkMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__network_mode>,
__NetworksAdvanced: IntoSet<Option<Output<Option<Vec<ContainerNetworksAdvanced>>>>, ContainerArgsBuilder__networks_advanced>,
__PidMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__pid_mode>,
__Ports: IntoSet<Option<Output<Option<Vec<ContainerPort>>>>, ContainerArgsBuilder__ports>,
__Privileged: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__privileged>,
__PublishAllPorts: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__publish_all_ports>,
__ReadOnly: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__read_only>,
__RemoveVolumes: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__remove_volumes>,
__Restart: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__restart>,
__Rm: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__rm>,
__Runtime: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__runtime>,
__SecurityOpts: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__security_opts>,
__ShmSize: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__shm_size>,
__Start: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__start>,
__StdinOpen: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__stdin_open>,
__StopSignal: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__stop_signal>,
__StopTimeout: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__stop_timeout>,
__StorageOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__storage_opts>,
__Sysctls: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__sysctls>,
__Tmpfs: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__tmpfs>,
__Tty: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__tty>,
__Ulimits: IntoSet<Option<Output<Option<Vec<ContainerUlimit>>>>, ContainerArgsBuilder__ulimits>,
__Uploads: IntoSet<Option<Output<Option<Vec<ContainerUpload>>>>, ContainerArgsBuilder__uploads>,
__User: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__user>,
__UsernsMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__userns_mode>,
__Volumes: IntoSet<Option<Output<Option<Vec<ContainerVolume>>>>, ContainerArgsBuilder__volumes>,
__Wait: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__wait>,
__WaitTimeout: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__wait_timeout>,
__WorkingDir: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__working_dir>,
pub fn build_struct(self) -> ContainerArgswhere
__Attach: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__attach>,
__Capabilities: IntoSet<Option<Output<Option<ContainerCapabilities>>>, ContainerArgsBuilder__capabilities>,
__CgroupnsMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__cgroupns_mode>,
__Command: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__command>,
__ContainerReadRefreshTimeoutMilliseconds: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__container_read_refresh_timeout_milliseconds>,
__CpuSet: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__cpu_set>,
__CpuShares: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__cpu_shares>,
__DestroyGraceSeconds: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__destroy_grace_seconds>,
__Devices: IntoSet<Option<Output<Option<Vec<ContainerDevice>>>>, ContainerArgsBuilder__devices>,
__Dns: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns>,
__DnsOpts: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns_opts>,
__DnsSearches: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__dns_searches>,
__Domainname: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__domainname>,
__Entrypoints: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__entrypoints>,
__Envs: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__envs>,
__Gpus: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__gpus>,
__GroupAdds: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__group_adds>,
__Healthcheck: IntoSet<Option<Output<Option<ContainerHealthcheck>>>, ContainerArgsBuilder__healthcheck>,
__Hostname: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__hostname>,
__Hosts: IntoSet<Option<Output<Option<Vec<ContainerHost>>>>, ContainerArgsBuilder__hosts>,
__Image: IntoSet<Output<String>, ContainerArgsBuilder__image>,
__Init: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__init>,
__IpcMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__ipc_mode>,
__Labels: IntoSet<Option<Output<Option<Vec<ContainerLabel>>>>, ContainerArgsBuilder__labels>,
__LogDriver: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__log_driver>,
__LogOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__log_opts>,
__Logs: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__logs>,
__MaxRetryCount: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__max_retry_count>,
__Memory: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__memory>,
__MemorySwap: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__memory_swap>,
__Mounts: IntoSet<Option<Output<Option<Vec<ContainerMount>>>>, ContainerArgsBuilder__mounts>,
__MustRun: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__must_run>,
__Name: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__name>,
__NetworkMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__network_mode>,
__NetworksAdvanced: IntoSet<Option<Output<Option<Vec<ContainerNetworksAdvanced>>>>, ContainerArgsBuilder__networks_advanced>,
__PidMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__pid_mode>,
__Ports: IntoSet<Option<Output<Option<Vec<ContainerPort>>>>, ContainerArgsBuilder__ports>,
__Privileged: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__privileged>,
__PublishAllPorts: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__publish_all_ports>,
__ReadOnly: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__read_only>,
__RemoveVolumes: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__remove_volumes>,
__Restart: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__restart>,
__Rm: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__rm>,
__Runtime: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__runtime>,
__SecurityOpts: IntoSet<Option<Output<Option<Vec<String>>>>, ContainerArgsBuilder__security_opts>,
__ShmSize: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__shm_size>,
__Start: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__start>,
__StdinOpen: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__stdin_open>,
__StopSignal: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__stop_signal>,
__StopTimeout: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__stop_timeout>,
__StorageOpts: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__storage_opts>,
__Sysctls: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__sysctls>,
__Tmpfs: IntoSet<Option<Output<Option<HashMap<String, String>>>>, ContainerArgsBuilder__tmpfs>,
__Tty: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__tty>,
__Ulimits: IntoSet<Option<Output<Option<Vec<ContainerUlimit>>>>, ContainerArgsBuilder__ulimits>,
__Uploads: IntoSet<Option<Output<Option<Vec<ContainerUpload>>>>, ContainerArgsBuilder__uploads>,
__User: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__user>,
__UsernsMode: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__userns_mode>,
__Volumes: IntoSet<Option<Output<Option<Vec<ContainerVolume>>>>, ContainerArgsBuilder__volumes>,
__Wait: IntoSet<Option<Output<Option<bool>>>, ContainerArgsBuilder__wait>,
__WaitTimeout: IntoSet<Option<Output<Option<i32>>>, ContainerArgsBuilder__wait_timeout>,
__WorkingDir: IntoSet<Option<Output<Option<String>>>, ContainerArgsBuilder__working_dir>,
Finishes building and returns the requested object.
sourcepub fn maybe_attach(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Attachwhere
__Attach: IsUnset,
pub fn maybe_attach(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Attachwhere
__Attach: IsUnset,
Same as Self::attach
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn attach(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Attachwhere
__Attach: IsUnset,
pub fn attach(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Attachwhere
__Attach: IsUnset,
If true
attach to the container after its creation and waits the end of its execution. Defaults to false
.
sourcepub fn maybe_capabilities(
self,
value: Option<impl Into<Output<Option<ContainerCapabilities>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Capabilitieswhere
__Capabilities: IsUnset,
pub fn maybe_capabilities(
self,
value: Option<impl Into<Output<Option<ContainerCapabilities>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Capabilitieswhere
__Capabilities: IsUnset,
Same as Self::capabilities
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn capabilities(
self,
value: impl Into<Output<Option<ContainerCapabilities>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Capabilitieswhere
__Capabilities: IsUnset,
pub fn capabilities(
self,
value: impl Into<Output<Option<ContainerCapabilities>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Capabilitieswhere
__Capabilities: IsUnset,
Add or drop certrain linux capabilities.
sourcepub fn maybe_cgroupns_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsModewhere
__CgroupnsMode: IsUnset,
pub fn maybe_cgroupns_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsModewhere
__CgroupnsMode: IsUnset,
Same as Self::cgroupns_mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn cgroupns_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsModewhere
__CgroupnsMode: IsUnset,
pub fn cgroupns_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsModewhere
__CgroupnsMode: IsUnset,
Cgroup namespace mode to use for the container. Possible values are: private
, host
.
sourcepub fn maybe_command(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Commandwhere
__Command: IsUnset,
pub fn maybe_command(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Commandwhere
__Command: IsUnset,
Same as Self::command
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn command(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Commandwhere
__Command: IsUnset,
pub fn command(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Commandwhere
__Command: IsUnset,
The command to use to start the container. For example, to run /usr/bin/myprogram -f baz.conf
set the command to be ["/usr/bin/myprogram","-f","baz.con"]
.
sourcepub fn maybe_container_read_refresh_timeout_milliseconds(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMillisecondswhere
__ContainerReadRefreshTimeoutMilliseconds: IsUnset,
pub fn maybe_container_read_refresh_timeout_milliseconds(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMillisecondswhere
__ContainerReadRefreshTimeoutMilliseconds: IsUnset,
Same as Self::container_read_refresh_timeout_milliseconds
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn container_read_refresh_timeout_milliseconds(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMillisecondswhere
__ContainerReadRefreshTimeoutMilliseconds: IsUnset,
pub fn container_read_refresh_timeout_milliseconds(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMillisecondswhere
__ContainerReadRefreshTimeoutMilliseconds: IsUnset,
The total number of milliseconds to wait for the container to reach status ‘running’
sourcepub fn maybe_cpu_set(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CpuSetwhere
__CpuSet: IsUnset,
pub fn maybe_cpu_set(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CpuSetwhere
__CpuSet: IsUnset,
Same as Self::cpu_set
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn cpu_set(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CpuSetwhere
__CpuSet: IsUnset,
pub fn cpu_set(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::CpuSetwhere
__CpuSet: IsUnset,
A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. 0-1
.
Same as Self::cpu_shares
, but accepts an Option
as input. See that method’s documentation for more details.
CPU shares (relative weight) for the container.
sourcepub fn maybe_destroy_grace_seconds(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSecondswhere
__DestroyGraceSeconds: IsUnset,
pub fn maybe_destroy_grace_seconds(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSecondswhere
__DestroyGraceSeconds: IsUnset,
Same as Self::destroy_grace_seconds
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn destroy_grace_seconds(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSecondswhere
__DestroyGraceSeconds: IsUnset,
pub fn destroy_grace_seconds(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSecondswhere
__DestroyGraceSeconds: IsUnset,
If defined will attempt to stop the container before destroying. Container will be destroyed after n
seconds or on successful stop.
sourcepub fn maybe_devices(
self,
value: Option<impl Into<Output<Option<Vec<ContainerDevice>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Deviceswhere
__Devices: IsUnset,
pub fn maybe_devices(
self,
value: Option<impl Into<Output<Option<Vec<ContainerDevice>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Deviceswhere
__Devices: IsUnset,
Same as Self::devices
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn devices(
self,
value: impl Into<Output<Option<Vec<ContainerDevice>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Deviceswhere
__Devices: IsUnset,
pub fn devices(
self,
value: impl Into<Output<Option<Vec<ContainerDevice>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Deviceswhere
__Devices: IsUnset,
Bind devices to the container.
sourcepub fn maybe_dns(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Dnswhere
__Dns: IsUnset,
pub fn maybe_dns(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Dnswhere
__Dns: IsUnset,
Same as Self::dns
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dns(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Dnswhere
__Dns: IsUnset,
pub fn dns(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Dnswhere
__Dns: IsUnset,
DNS servers to use.
sourcepub fn maybe_dns_opts(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsOptswhere
__DnsOpts: IsUnset,
pub fn maybe_dns_opts(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsOptswhere
__DnsOpts: IsUnset,
Same as Self::dns_opts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dns_opts(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsOptswhere
__DnsOpts: IsUnset,
pub fn dns_opts(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsOptswhere
__DnsOpts: IsUnset,
DNS options used by the DNS provider(s), see resolv.conf
documentation for valid list of options.
sourcepub fn maybe_dns_searches(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearcheswhere
__DnsSearches: IsUnset,
pub fn maybe_dns_searches(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearcheswhere
__DnsSearches: IsUnset,
Same as Self::dns_searches
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn dns_searches(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearcheswhere
__DnsSearches: IsUnset,
pub fn dns_searches(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearcheswhere
__DnsSearches: IsUnset,
DNS search domains that are used when bare unqualified hostnames are used inside of the container.
sourcepub fn maybe_domainname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Domainnamewhere
__Domainname: IsUnset,
pub fn maybe_domainname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Domainnamewhere
__Domainname: IsUnset,
Same as Self::domainname
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn domainname(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Domainnamewhere
__Domainname: IsUnset,
pub fn domainname(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Domainnamewhere
__Domainname: IsUnset,
Domain name of the container.
sourcepub fn maybe_entrypoints(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Entrypointswhere
__Entrypoints: IsUnset,
pub fn maybe_entrypoints(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Entrypointswhere
__Entrypoints: IsUnset,
Same as Self::entrypoints
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn entrypoints(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Entrypointswhere
__Entrypoints: IsUnset,
pub fn entrypoints(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Entrypointswhere
__Entrypoints: IsUnset,
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run /usr/bin/myprogram
when starting a container, set the entrypoint to be "/usr/bin/myprogra"]
.
sourcepub fn maybe_envs(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Envswhere
__Envs: IsUnset,
pub fn maybe_envs(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Envswhere
__Envs: IsUnset,
Same as Self::envs
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn envs(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Envswhere
__Envs: IsUnset,
pub fn envs(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Envswhere
__Envs: IsUnset,
Environment variables to set in the form of KEY=VALUE
, e.g. DEBUG=0
sourcepub fn maybe_gpus(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Gpuswhere
__Gpus: IsUnset,
pub fn maybe_gpus(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Gpuswhere
__Gpus: IsUnset,
Same as Self::gpus
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn gpus(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Gpuswhere
__Gpus: IsUnset,
pub fn gpus(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Gpuswhere
__Gpus: IsUnset,
GPU devices to add to the container. Currently, only the value all
is supported. Passing any other value will result in unexpected behavior.
sourcepub fn maybe_group_adds(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::GroupAddswhere
__GroupAdds: IsUnset,
pub fn maybe_group_adds(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::GroupAddswhere
__GroupAdds: IsUnset,
Same as Self::group_adds
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn group_adds(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::GroupAddswhere
__GroupAdds: IsUnset,
pub fn group_adds(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::GroupAddswhere
__GroupAdds: IsUnset,
Additional groups for the container user
sourcepub fn maybe_healthcheck(
self,
value: Option<impl Into<Output<Option<ContainerHealthcheck>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
pub fn maybe_healthcheck(
self,
value: Option<impl Into<Output<Option<ContainerHealthcheck>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
Same as Self::healthcheck
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn healthcheck(
self,
value: impl Into<Output<Option<ContainerHealthcheck>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
pub fn healthcheck(
self,
value: impl Into<Output<Option<ContainerHealthcheck>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheckwhere
__Healthcheck: IsUnset,
A test to perform to check that the container is healthy
sourcepub fn maybe_hostname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
pub fn maybe_hostname(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
Same as Self::hostname
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn hostname(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
pub fn hostname(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostnamewhere
__Hostname: IsUnset,
Hostname of the container.
sourcepub fn maybe_hosts(
self,
value: Option<impl Into<Output<Option<Vec<ContainerHost>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
pub fn maybe_hosts(
self,
value: Option<impl Into<Output<Option<Vec<ContainerHost>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
Same as Self::hosts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn hosts(
self,
value: impl Into<Output<Option<Vec<ContainerHost>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
pub fn hosts(
self,
value: impl Into<Output<Option<Vec<ContainerHost>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Hostswhere
__Hosts: IsUnset,
Hostname to add
sourcepub fn image(
self,
value: impl Into<Output<String>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Imagewhere
__Image: IsUnset,
pub fn image(
self,
value: impl Into<Output<String>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Imagewhere
__Image: IsUnset,
The ID of the image to back this container. The easiest way to get this value is to use the docker.RemoteImage
resource as is shown in the example.
sourcepub fn maybe_init(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Initwhere
__Init: IsUnset,
pub fn maybe_init(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Initwhere
__Init: IsUnset,
Same as Self::init
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn init(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Initwhere
__Init: IsUnset,
pub fn init(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Initwhere
__Init: IsUnset,
Configured whether an init process should be injected for this container. If unset this will default to the dockerd
defaults.
sourcepub fn maybe_ipc_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::IpcModewhere
__IpcMode: IsUnset,
pub fn maybe_ipc_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::IpcModewhere
__IpcMode: IsUnset,
Same as Self::ipc_mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ipc_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::IpcModewhere
__IpcMode: IsUnset,
pub fn ipc_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::IpcModewhere
__IpcMode: IsUnset,
IPC sharing mode for the container. Possible values are: none
, private
, shareable
, container:<name|id>
or host
.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<ContainerLabel>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<Vec<ContainerLabel>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
Same as Self::labels
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn labels(
self,
value: impl Into<Output<Option<Vec<ContainerLabel>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Output<Option<Vec<ContainerLabel>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata.
sourcepub fn maybe_log_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogDriverwhere
__LogDriver: IsUnset,
pub fn maybe_log_driver(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogDriverwhere
__LogDriver: IsUnset,
Same as Self::log_driver
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn log_driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogDriverwhere
__LogDriver: IsUnset,
pub fn log_driver(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogDriverwhere
__LogDriver: IsUnset,
The logging driver to use for the container.
sourcepub fn maybe_log_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogOptswhere
__LogOpts: IsUnset,
pub fn maybe_log_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogOptswhere
__LogOpts: IsUnset,
Same as Self::log_opts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn log_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogOptswhere
__LogOpts: IsUnset,
pub fn log_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::LogOptswhere
__LogOpts: IsUnset,
Key/value pairs to use as options for the logging driver.
sourcepub fn maybe_logs(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Logswhere
__Logs: IsUnset,
pub fn maybe_logs(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Logswhere
__Logs: IsUnset,
Same as Self::logs
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn logs(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Logswhere
__Logs: IsUnset,
pub fn logs(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Logswhere
__Logs: IsUnset,
Save the container logs (attach
must be enabled). Defaults to false
.
sourcepub fn maybe_max_retry_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCountwhere
__MaxRetryCount: IsUnset,
pub fn maybe_max_retry_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCountwhere
__MaxRetryCount: IsUnset,
Same as Self::max_retry_count
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn max_retry_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCountwhere
__MaxRetryCount: IsUnset,
pub fn max_retry_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCountwhere
__MaxRetryCount: IsUnset,
The maximum amount of times to an attempt a restart when restart
is set to ‘on-failure’.
sourcepub fn maybe_memory(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Memorywhere
__Memory: IsUnset,
pub fn maybe_memory(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Memorywhere
__Memory: IsUnset,
Same as Self::memory
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn memory(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Memorywhere
__Memory: IsUnset,
pub fn memory(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Memorywhere
__Memory: IsUnset,
The memory limit for the container in MBs.
sourcepub fn maybe_memory_swap(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwapwhere
__MemorySwap: IsUnset,
pub fn maybe_memory_swap(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwapwhere
__MemorySwap: IsUnset,
Same as Self::memory_swap
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn memory_swap(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwapwhere
__MemorySwap: IsUnset,
pub fn memory_swap(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwapwhere
__MemorySwap: IsUnset,
The total memory limit (memory + swap) for the container in MBs. This setting may compute to -1
after pulumi up
if the target host doesn’t support memory swap, when that is the case docker will use a soft limitation.
sourcepub fn maybe_mounts(
self,
value: Option<impl Into<Output<Option<Vec<ContainerMount>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
pub fn maybe_mounts(
self,
value: Option<impl Into<Output<Option<Vec<ContainerMount>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
Same as Self::mounts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn mounts(
self,
value: impl Into<Output<Option<Vec<ContainerMount>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
pub fn mounts(
self,
value: impl Into<Output<Option<Vec<ContainerMount>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Mountswhere
__Mounts: IsUnset,
Specification for mounts to be added to containers created as part of the service.
sourcepub fn maybe_must_run(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MustRunwhere
__MustRun: IsUnset,
pub fn maybe_must_run(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MustRunwhere
__MustRun: IsUnset,
Same as Self::must_run
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn must_run(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MustRunwhere
__MustRun: IsUnset,
pub fn must_run(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::MustRunwhere
__MustRun: IsUnset,
If true
, then the Docker container will be kept running. If false
, then as long as the container exists, Terraform
assumes it is successful. Defaults to true
.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
Same as Self::name
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Namewhere
__Name: IsUnset,
The name or id of the network to use. You can use name
or id
attribute from a docker.Network
resource.
sourcepub fn maybe_network_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworkModewhere
__NetworkMode: IsUnset,
pub fn maybe_network_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworkModewhere
__NetworkMode: IsUnset,
Same as Self::network_mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn network_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworkModewhere
__NetworkMode: IsUnset,
pub fn network_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworkModewhere
__NetworkMode: IsUnset,
Network mode of the container.
sourcepub fn maybe_networks_advanced(
self,
value: Option<impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvancedwhere
__NetworksAdvanced: IsUnset,
pub fn maybe_networks_advanced(
self,
value: Option<impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvancedwhere
__NetworksAdvanced: IsUnset,
Same as Self::networks_advanced
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn networks_advanced(
self,
value: impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvancedwhere
__NetworksAdvanced: IsUnset,
pub fn networks_advanced(
self,
value: impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvancedwhere
__NetworksAdvanced: IsUnset,
The networks the container is attached to
sourcepub fn maybe_pid_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PidModewhere
__PidMode: IsUnset,
pub fn maybe_pid_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PidModewhere
__PidMode: IsUnset,
Same as Self::pid_mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn pid_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PidModewhere
__PidMode: IsUnset,
pub fn pid_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PidModewhere
__PidMode: IsUnset,
he PID (Process) Namespace mode for the container. Either container:<name|id>
or host
.
sourcepub fn maybe_ports(
self,
value: Option<impl Into<Output<Option<Vec<ContainerPort>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Portswhere
__Ports: IsUnset,
pub fn maybe_ports(
self,
value: Option<impl Into<Output<Option<Vec<ContainerPort>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Portswhere
__Ports: IsUnset,
Same as Self::ports
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ports(
self,
value: impl Into<Output<Option<Vec<ContainerPort>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Portswhere
__Ports: IsUnset,
pub fn ports(
self,
value: impl Into<Output<Option<Vec<ContainerPort>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Portswhere
__Ports: IsUnset,
Publish a container’s port(s) to the host.
sourcepub fn maybe_privileged(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Privilegedwhere
__Privileged: IsUnset,
pub fn maybe_privileged(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Privilegedwhere
__Privileged: IsUnset,
Same as Self::privileged
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn privileged(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Privilegedwhere
__Privileged: IsUnset,
pub fn privileged(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Privilegedwhere
__Privileged: IsUnset,
If true
, the container runs in privileged mode.
sourcepub fn maybe_publish_all_ports(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPortswhere
__PublishAllPorts: IsUnset,
pub fn maybe_publish_all_ports(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPortswhere
__PublishAllPorts: IsUnset,
Same as Self::publish_all_ports
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn publish_all_ports(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPortswhere
__PublishAllPorts: IsUnset,
pub fn publish_all_ports(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPortswhere
__PublishAllPorts: IsUnset,
Publish all ports of the container.
sourcepub fn maybe_read_only(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Same as Self::read_only
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn read_only(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn read_only(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Whether the mount should be read-only.
sourcepub fn maybe_remove_volumes(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumeswhere
__RemoveVolumes: IsUnset,
pub fn maybe_remove_volumes(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumeswhere
__RemoveVolumes: IsUnset,
Same as Self::remove_volumes
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn remove_volumes(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumeswhere
__RemoveVolumes: IsUnset,
pub fn remove_volumes(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumeswhere
__RemoveVolumes: IsUnset,
If true
, it will remove anonymous volumes associated with the container. Defaults to true
.
sourcepub fn maybe_restart(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Restartwhere
__Restart: IsUnset,
pub fn maybe_restart(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Restartwhere
__Restart: IsUnset,
Same as Self::restart
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn restart(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Restartwhere
__Restart: IsUnset,
pub fn restart(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Restartwhere
__Restart: IsUnset,
The restart policy for the container. Must be one of ‘no’, ‘on-failure’, ‘always’, ‘unless-stopped’. Defaults to no
.
sourcepub fn maybe_rm(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Rmwhere
__Rm: IsUnset,
pub fn maybe_rm(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Rmwhere
__Rm: IsUnset,
Same as Self::rm
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn rm(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Rmwhere
__Rm: IsUnset,
pub fn rm(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Rmwhere
__Rm: IsUnset,
If true
, then the container will be automatically removed when it exits. Defaults to false
.
sourcepub fn maybe_runtime(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Runtimewhere
__Runtime: IsUnset,
pub fn maybe_runtime(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Runtimewhere
__Runtime: IsUnset,
Same as Self::runtime
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn runtime(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Runtimewhere
__Runtime: IsUnset,
pub fn runtime(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Runtimewhere
__Runtime: IsUnset,
Runtime to use for the container.
sourcepub fn maybe_security_opts(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOptswhere
__SecurityOpts: IsUnset,
pub fn maybe_security_opts(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOptswhere
__SecurityOpts: IsUnset,
Same as Self::security_opts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn security_opts(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOptswhere
__SecurityOpts: IsUnset,
pub fn security_opts(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOptswhere
__SecurityOpts: IsUnset,
List of string values to customize labels for MLS systems, such as SELinux. See https://docs.docker.com/engine/reference/run/#security-configuration.
sourcepub fn maybe_shm_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ShmSizewhere
__ShmSize: IsUnset,
pub fn maybe_shm_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ShmSizewhere
__ShmSize: IsUnset,
Same as Self::shm_size
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn shm_size(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ShmSizewhere
__ShmSize: IsUnset,
pub fn shm_size(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::ShmSizewhere
__ShmSize: IsUnset,
Size of /dev/shm
in MBs.
sourcepub fn maybe_start(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Startwhere
__Start: IsUnset,
pub fn maybe_start(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Startwhere
__Start: IsUnset,
Same as Self::start
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn start(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Startwhere
__Start: IsUnset,
pub fn start(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Startwhere
__Start: IsUnset,
If true
, then the Docker container will be started after creation. If false
, then the container is only created. Defaults to true
.
sourcepub fn maybe_stdin_open(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpenwhere
__StdinOpen: IsUnset,
pub fn maybe_stdin_open(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpenwhere
__StdinOpen: IsUnset,
Same as Self::stdin_open
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn stdin_open(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpenwhere
__StdinOpen: IsUnset,
pub fn stdin_open(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpenwhere
__StdinOpen: IsUnset,
If true
, keep STDIN open even if not attached (docker run -i
). Defaults to false
.
sourcepub fn maybe_stop_signal(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
pub fn maybe_stop_signal(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
Same as Self::stop_signal
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn stop_signal(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
pub fn stop_signal(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopSignalwhere
__StopSignal: IsUnset,
Signal to stop a container (default SIGTERM
).
sourcepub fn maybe_stop_timeout(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeoutwhere
__StopTimeout: IsUnset,
pub fn maybe_stop_timeout(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeoutwhere
__StopTimeout: IsUnset,
Same as Self::stop_timeout
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn stop_timeout(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeoutwhere
__StopTimeout: IsUnset,
pub fn stop_timeout(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeoutwhere
__StopTimeout: IsUnset,
Timeout (in seconds) to stop a container.
sourcepub fn maybe_storage_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StorageOptswhere
__StorageOpts: IsUnset,
pub fn maybe_storage_opts(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StorageOptswhere
__StorageOpts: IsUnset,
Same as Self::storage_opts
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn storage_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StorageOptswhere
__StorageOpts: IsUnset,
pub fn storage_opts(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::StorageOptswhere
__StorageOpts: IsUnset,
Key/value pairs for the storage driver options, e.g. size
: 120G
sourcepub fn maybe_sysctls(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Sysctlswhere
__Sysctls: IsUnset,
pub fn maybe_sysctls(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Sysctlswhere
__Sysctls: IsUnset,
Same as Self::sysctls
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn sysctls(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Sysctlswhere
__Sysctls: IsUnset,
pub fn sysctls(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Sysctlswhere
__Sysctls: IsUnset,
A map of kernel parameters (sysctls) to set in the container.
sourcepub fn maybe_tmpfs(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfswhere
__Tmpfs: IsUnset,
pub fn maybe_tmpfs(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfswhere
__Tmpfs: IsUnset,
Same as Self::tmpfs
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn tmpfs(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfswhere
__Tmpfs: IsUnset,
pub fn tmpfs(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfswhere
__Tmpfs: IsUnset,
A map of container directories which should be replaced by tmpfs mounts
, and their corresponding mount options.
sourcepub fn maybe_tty(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ttywhere
__Tty: IsUnset,
pub fn maybe_tty(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ttywhere
__Tty: IsUnset,
Same as Self::tty
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn tty(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ttywhere
__Tty: IsUnset,
pub fn tty(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ttywhere
__Tty: IsUnset,
If true
, allocate a pseudo-tty (docker run -t
). Defaults to false
.
sourcepub fn maybe_ulimits(
self,
value: Option<impl Into<Output<Option<Vec<ContainerUlimit>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ulimitswhere
__Ulimits: IsUnset,
pub fn maybe_ulimits(
self,
value: Option<impl Into<Output<Option<Vec<ContainerUlimit>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ulimitswhere
__Ulimits: IsUnset,
Same as Self::ulimits
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ulimits(
self,
value: impl Into<Output<Option<Vec<ContainerUlimit>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ulimitswhere
__Ulimits: IsUnset,
pub fn ulimits(
self,
value: impl Into<Output<Option<Vec<ContainerUlimit>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Ulimitswhere
__Ulimits: IsUnset,
Ulimit options to add.
sourcepub fn maybe_uploads(
self,
value: Option<impl Into<Output<Option<Vec<ContainerUpload>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Uploadswhere
__Uploads: IsUnset,
pub fn maybe_uploads(
self,
value: Option<impl Into<Output<Option<Vec<ContainerUpload>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Uploadswhere
__Uploads: IsUnset,
Same as Self::uploads
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn uploads(
self,
value: impl Into<Output<Option<Vec<ContainerUpload>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Uploadswhere
__Uploads: IsUnset,
pub fn uploads(
self,
value: impl Into<Output<Option<Vec<ContainerUpload>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Uploadswhere
__Uploads: IsUnset,
Specifies files to upload to the container before starting it. Only one of content
or content_base64
can be set and at least one of them has to be set.
sourcepub fn maybe_user(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Userwhere
__User: IsUnset,
pub fn maybe_user(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Userwhere
__User: IsUnset,
Same as Self::user
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn user(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Userwhere
__User: IsUnset,
pub fn user(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Userwhere
__User: IsUnset,
User used for run the first process. Format is user
or user:group
which user and group can be passed literraly or by name.
sourcepub fn maybe_userns_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::UsernsModewhere
__UsernsMode: IsUnset,
pub fn maybe_userns_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::UsernsModewhere
__UsernsMode: IsUnset,
Same as Self::userns_mode
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn userns_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::UsernsModewhere
__UsernsMode: IsUnset,
pub fn userns_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::UsernsModewhere
__UsernsMode: IsUnset,
Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
sourcepub fn maybe_volumes(
self,
value: Option<impl Into<Output<Option<Vec<ContainerVolume>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Volumeswhere
__Volumes: IsUnset,
pub fn maybe_volumes(
self,
value: Option<impl Into<Output<Option<Vec<ContainerVolume>>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Volumeswhere
__Volumes: IsUnset,
Same as Self::volumes
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn volumes(
self,
value: impl Into<Output<Option<Vec<ContainerVolume>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Volumeswhere
__Volumes: IsUnset,
pub fn volumes(
self,
value: impl Into<Output<Option<Vec<ContainerVolume>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Volumeswhere
__Volumes: IsUnset,
Spec for mounting volumes in the container.
sourcepub fn maybe_wait(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Waitwhere
__Wait: IsUnset,
pub fn maybe_wait(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Waitwhere
__Wait: IsUnset,
Same as Self::wait
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn wait(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Waitwhere
__Wait: IsUnset,
pub fn wait(
self,
value: impl Into<Output<Option<bool>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::Waitwhere
__Wait: IsUnset,
If true
, then the Docker container is waited for being healthy state after creation. If false
, then the container health state is not checked. Defaults to false
.
sourcepub fn maybe_wait_timeout(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeoutwhere
__WaitTimeout: IsUnset,
pub fn maybe_wait_timeout(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeoutwhere
__WaitTimeout: IsUnset,
Same as Self::wait_timeout
, but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn wait_timeout(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeoutwhere
__WaitTimeout: IsUnset,
pub fn wait_timeout(
self,
value: impl Into<Output<Option<i32>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeoutwhere
__WaitTimeout: IsUnset,
The timeout in seconds to wait the container to be healthy after creation. Defaults to 60
.
sourcepub fn maybe_working_dir(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WorkingDirwhere
__WorkingDir: IsUnset,
pub fn maybe_working_dir(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> <Self as __ContainerArgsBuilderSetMember>::WorkingDirwhere
__WorkingDir: IsUnset,
Same as Self::working_dir
, but accepts an Option
as input. See that method’s documentation for more details.