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§

source§

impl<__Attach, __Capabilities, __CgroupnsMode, __Command, __ContainerReadRefreshTimeoutMilliseconds, __CpuSet, __CpuShares, __DestroyGraceSeconds, __Devices, __Dns, __DnsOpts, __DnsSearches, __Domainname, __Entrypoints, __Envs, __Gpus, __GroupAdds, __Healthcheck, __Hostname, __Hosts, __Image, __Init, __IpcMode, __Labels, __LogDriver, __LogOpts, __Logs, __MaxRetryCount, __Memory, __MemorySwap, __Mounts, __MustRun, __Name, __NetworkMode, __NetworksAdvanced, __PidMode, __Ports, __Privileged, __PublishAllPorts, __ReadOnly, __RemoveVolumes, __Restart, __Rm, __Runtime, __SecurityOpts, __ShmSize, __Start, __StdinOpen, __StopSignal, __StopTimeout, __StorageOpts, __Sysctls, __Tmpfs, __Tty, __Ulimits, __Uploads, __User, __UsernsMode, __Volumes, __Wait, __WaitTimeout, __WorkingDir> ContainerArgsBuilder<(__Attach, __Capabilities, __CgroupnsMode, __Command, __ContainerReadRefreshTimeoutMilliseconds, __CpuSet, __CpuShares, __DestroyGraceSeconds, __Devices, __Dns, __DnsOpts, __DnsSearches, __Domainname, __Entrypoints, __Envs, __Gpus, __GroupAdds, __Healthcheck, __Hostname, __Hosts, __Image, __Init, __IpcMode, __Labels, __LogDriver, __LogOpts, __Logs, __MaxRetryCount, __Memory, __MemorySwap, __Mounts, __MustRun, __Name, __NetworkMode, __NetworksAdvanced, __PidMode, __Ports, __Privileged, __PublishAllPorts, __ReadOnly, __RemoveVolumes, __Restart, __Rm, __Runtime, __SecurityOpts, __ShmSize, __Start, __StdinOpen, __StopSignal, __StopTimeout, __StorageOpts, __Sysctls, __Tmpfs, __Tty, __Ulimits, __Uploads, __User, __UsernsMode, __Volumes, __Wait, __WaitTimeout, __WorkingDir)>

source

pub fn build_struct(self) -> ContainerArgs
where __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.

source

pub fn maybe_attach( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Attach
where __Attach: IsUnset,

Same as Self::attach, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn attach( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Attach
where __Attach: IsUnset,

If true attach to the container after its creation and waits the end of its execution. Defaults to false.

source

pub fn maybe_capabilities( self, value: Option<impl Into<Output<Option<ContainerCapabilities>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Capabilities
where __Capabilities: IsUnset,

Same as Self::capabilities, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn capabilities( self, value: impl Into<Output<Option<ContainerCapabilities>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Capabilities
where __Capabilities: IsUnset,

Add or drop certrain linux capabilities.

source

pub fn maybe_cgroupns_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsMode
where __CgroupnsMode: IsUnset,

Same as Self::cgroupns_mode, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn cgroupns_mode( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CgroupnsMode
where __CgroupnsMode: IsUnset,

Cgroup namespace mode to use for the container. Possible values are: private, host.

source

pub fn maybe_command( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Command
where __Command: IsUnset,

Same as Self::command, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn command( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Command
where __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"].

source

pub fn maybe_container_read_refresh_timeout_milliseconds( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMilliseconds
where __ContainerReadRefreshTimeoutMilliseconds: IsUnset,

Same as Self::container_read_refresh_timeout_milliseconds, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn container_read_refresh_timeout_milliseconds( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ContainerReadRefreshTimeoutMilliseconds
where __ContainerReadRefreshTimeoutMilliseconds: IsUnset,

The total number of milliseconds to wait for the container to reach status ‘running’

source

pub fn maybe_cpu_set( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CpuSet
where __CpuSet: IsUnset,

Same as Self::cpu_set, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn cpu_set( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CpuSet
where __CpuSet: IsUnset,

A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. 0-1.

source

pub fn maybe_cpu_shares( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CpuShares
where __CpuShares: IsUnset,

Same as Self::cpu_shares, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn cpu_shares( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::CpuShares
where __CpuShares: IsUnset,

CPU shares (relative weight) for the container.

source

pub fn maybe_destroy_grace_seconds( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSeconds
where __DestroyGraceSeconds: IsUnset,

Same as Self::destroy_grace_seconds, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn destroy_grace_seconds( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DestroyGraceSeconds
where __DestroyGraceSeconds: IsUnset,

If defined will attempt to stop the container before destroying. Container will be destroyed after n seconds or on successful stop.

source

pub fn maybe_devices( self, value: Option<impl Into<Output<Option<Vec<ContainerDevice>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Devices
where __Devices: IsUnset,

Same as Self::devices, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn devices( self, value: impl Into<Output<Option<Vec<ContainerDevice>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Devices
where __Devices: IsUnset,

Bind devices to the container.

source

pub fn maybe_dns( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Dns
where __Dns: IsUnset,

Same as Self::dns, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn dns( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Dns
where __Dns: IsUnset,

DNS servers to use.

source

pub fn maybe_dns_opts( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DnsOpts
where __DnsOpts: IsUnset,

Same as Self::dns_opts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn dns_opts( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DnsOpts
where __DnsOpts: IsUnset,

DNS options used by the DNS provider(s), see resolv.conf documentation for valid list of options.

source

pub fn maybe_dns_searches( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearches
where __DnsSearches: IsUnset,

Same as Self::dns_searches, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn dns_searches( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::DnsSearches
where __DnsSearches: IsUnset,

DNS search domains that are used when bare unqualified hostnames are used inside of the container.

source

pub fn maybe_domainname( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Domainname
where __Domainname: IsUnset,

Same as Self::domainname, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn domainname( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Domainname
where __Domainname: IsUnset,

Domain name of the container.

source

pub fn maybe_entrypoints( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Entrypoints
where __Entrypoints: IsUnset,

Same as Self::entrypoints, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn entrypoints( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Entrypoints
where __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"].

source

pub fn maybe_envs( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Envs
where __Envs: IsUnset,

Same as Self::envs, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn envs( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Envs
where __Envs: IsUnset,

Environment variables to set in the form of KEY=VALUE, e.g. DEBUG=0

source

pub fn maybe_gpus( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Gpus
where __Gpus: IsUnset,

Same as Self::gpus, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn gpus( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Gpus
where __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.

source

pub fn maybe_group_adds( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::GroupAdds
where __GroupAdds: IsUnset,

Same as Self::group_adds, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn group_adds( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::GroupAdds
where __GroupAdds: IsUnset,

Additional groups for the container user

source

pub fn maybe_healthcheck( self, value: Option<impl Into<Output<Option<ContainerHealthcheck>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheck
where __Healthcheck: IsUnset,

Same as Self::healthcheck, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn healthcheck( self, value: impl Into<Output<Option<ContainerHealthcheck>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Healthcheck
where __Healthcheck: IsUnset,

A test to perform to check that the container is healthy

source

pub fn maybe_hostname( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Hostname
where __Hostname: IsUnset,

Same as Self::hostname, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn hostname( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Hostname
where __Hostname: IsUnset,

Hostname of the container.

source

pub fn maybe_hosts( self, value: Option<impl Into<Output<Option<Vec<ContainerHost>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Hosts
where __Hosts: IsUnset,

Same as Self::hosts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn hosts( self, value: impl Into<Output<Option<Vec<ContainerHost>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Hosts
where __Hosts: IsUnset,

Hostname to add

source

pub fn image( self, value: impl Into<Output<String>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Image
where __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.

source

pub fn maybe_init( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Init
where __Init: IsUnset,

Same as Self::init, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn init( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Init
where __Init: IsUnset,

Configured whether an init process should be injected for this container. If unset this will default to the dockerd defaults.

source

pub fn maybe_ipc_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::IpcMode
where __IpcMode: IsUnset,

Same as Self::ipc_mode, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipc_mode( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::IpcMode
where __IpcMode: IsUnset,

IPC sharing mode for the container. Possible values are: none, private, shareable, container:<name|id> or host.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<Vec<ContainerLabel>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Labels
where __Labels: IsUnset,

Same as Self::labels, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn labels( self, value: impl Into<Output<Option<Vec<ContainerLabel>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Labels
where __Labels: IsUnset,

User-defined key/value metadata.

source

pub fn maybe_log_driver( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::LogDriver
where __LogDriver: IsUnset,

Same as Self::log_driver, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn log_driver( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::LogDriver
where __LogDriver: IsUnset,

The logging driver to use for the container.

source

pub fn maybe_log_opts( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::LogOpts
where __LogOpts: IsUnset,

Same as Self::log_opts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn log_opts( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::LogOpts
where __LogOpts: IsUnset,

Key/value pairs to use as options for the logging driver.

source

pub fn maybe_logs( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Logs
where __Logs: IsUnset,

Same as Self::logs, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn logs( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Logs
where __Logs: IsUnset,

Save the container logs (attach must be enabled). Defaults to false.

source

pub fn maybe_max_retry_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCount
where __MaxRetryCount: IsUnset,

Same as Self::max_retry_count, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn max_retry_count( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MaxRetryCount
where __MaxRetryCount: IsUnset,

The maximum amount of times to an attempt a restart when restart is set to ‘on-failure’.

source

pub fn maybe_memory( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Memory
where __Memory: IsUnset,

Same as Self::memory, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn memory( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Memory
where __Memory: IsUnset,

The memory limit for the container in MBs.

source

pub fn maybe_memory_swap( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwap
where __MemorySwap: IsUnset,

Same as Self::memory_swap, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn memory_swap( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MemorySwap
where __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.

source

pub fn maybe_mounts( self, value: Option<impl Into<Output<Option<Vec<ContainerMount>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Mounts
where __Mounts: IsUnset,

Same as Self::mounts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn mounts( self, value: impl Into<Output<Option<Vec<ContainerMount>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Mounts
where __Mounts: IsUnset,

Specification for mounts to be added to containers created as part of the service.

source

pub fn maybe_must_run( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MustRun
where __MustRun: IsUnset,

Same as Self::must_run, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn must_run( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::MustRun
where __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.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Name
where __Name: IsUnset,

Same as Self::name, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Name
where __Name: IsUnset,

The name or id of the network to use. You can use name or id attribute from a docker.Network resource.

source

pub fn maybe_network_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::NetworkMode
where __NetworkMode: IsUnset,

Same as Self::network_mode, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn network_mode( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::NetworkMode
where __NetworkMode: IsUnset,

Network mode of the container.

source

pub fn maybe_networks_advanced( self, value: Option<impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvanced
where __NetworksAdvanced: IsUnset,

Same as Self::networks_advanced, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn networks_advanced( self, value: impl Into<Output<Option<Vec<ContainerNetworksAdvanced>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::NetworksAdvanced
where __NetworksAdvanced: IsUnset,

The networks the container is attached to

source

pub fn maybe_pid_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::PidMode
where __PidMode: IsUnset,

Same as Self::pid_mode, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn pid_mode( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::PidMode
where __PidMode: IsUnset,

he PID (Process) Namespace mode for the container. Either container:<name|id> or host.

source

pub fn maybe_ports( self, value: Option<impl Into<Output<Option<Vec<ContainerPort>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Ports
where __Ports: IsUnset,

Same as Self::ports, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ports( self, value: impl Into<Output<Option<Vec<ContainerPort>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Ports
where __Ports: IsUnset,

Publish a container’s port(s) to the host.

source

pub fn maybe_privileged( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Privileged
where __Privileged: IsUnset,

Same as Self::privileged, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn privileged( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Privileged
where __Privileged: IsUnset,

If true, the container runs in privileged mode.

source

pub fn maybe_publish_all_ports( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPorts
where __PublishAllPorts: IsUnset,

Same as Self::publish_all_ports, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn publish_all_ports( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::PublishAllPorts
where __PublishAllPorts: IsUnset,

Publish all ports of the container.

source

pub fn maybe_read_only( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnly
where __ReadOnly: IsUnset,

Same as Self::read_only, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn read_only( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ReadOnly
where __ReadOnly: IsUnset,

Whether the mount should be read-only.

source

pub fn maybe_remove_volumes( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumes
where __RemoveVolumes: IsUnset,

Same as Self::remove_volumes, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn remove_volumes( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::RemoveVolumes
where __RemoveVolumes: IsUnset,

If true, it will remove anonymous volumes associated with the container. Defaults to true.

source

pub fn maybe_restart( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Restart
where __Restart: IsUnset,

Same as Self::restart, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn restart( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Restart
where __Restart: IsUnset,

The restart policy for the container. Must be one of ‘no’, ‘on-failure’, ‘always’, ‘unless-stopped’. Defaults to no.

source

pub fn maybe_rm( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Rm
where __Rm: IsUnset,

Same as Self::rm, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn rm( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Rm
where __Rm: IsUnset,

If true, then the container will be automatically removed when it exits. Defaults to false.

source

pub fn maybe_runtime( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Runtime
where __Runtime: IsUnset,

Same as Self::runtime, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn runtime( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Runtime
where __Runtime: IsUnset,

Runtime to use for the container.

source

pub fn maybe_security_opts( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOpts
where __SecurityOpts: IsUnset,

Same as Self::security_opts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn security_opts( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::SecurityOpts
where __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.

source

pub fn maybe_shm_size( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ShmSize
where __ShmSize: IsUnset,

Same as Self::shm_size, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn shm_size( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::ShmSize
where __ShmSize: IsUnset,

Size of /dev/shm in MBs.

source

pub fn maybe_start( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Start
where __Start: IsUnset,

Same as Self::start, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn start( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Start
where __Start: IsUnset,

If true, then the Docker container will be started after creation. If false, then the container is only created. Defaults to true.

source

pub fn maybe_stdin_open( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpen
where __StdinOpen: IsUnset,

Same as Self::stdin_open, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn stdin_open( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StdinOpen
where __StdinOpen: IsUnset,

If true, keep STDIN open even if not attached (docker run -i). Defaults to false.

source

pub fn maybe_stop_signal( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StopSignal
where __StopSignal: IsUnset,

Same as Self::stop_signal, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn stop_signal( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StopSignal
where __StopSignal: IsUnset,

Signal to stop a container (default SIGTERM).

source

pub fn maybe_stop_timeout( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeout
where __StopTimeout: IsUnset,

Same as Self::stop_timeout, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn stop_timeout( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StopTimeout
where __StopTimeout: IsUnset,

Timeout (in seconds) to stop a container.

source

pub fn maybe_storage_opts( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StorageOpts
where __StorageOpts: IsUnset,

Same as Self::storage_opts, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn storage_opts( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::StorageOpts
where __StorageOpts: IsUnset,

Key/value pairs for the storage driver options, e.g. size: 120G

source

pub fn maybe_sysctls( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Sysctls
where __Sysctls: IsUnset,

Same as Self::sysctls, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn sysctls( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Sysctls
where __Sysctls: IsUnset,

A map of kernel parameters (sysctls) to set in the container.

source

pub fn maybe_tmpfs( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfs
where __Tmpfs: IsUnset,

Same as Self::tmpfs, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn tmpfs( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Tmpfs
where __Tmpfs: IsUnset,

A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options.

source

pub fn maybe_tty( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Tty
where __Tty: IsUnset,

Same as Self::tty, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn tty( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Tty
where __Tty: IsUnset,

If true, allocate a pseudo-tty (docker run -t). Defaults to false.

source

pub fn maybe_ulimits( self, value: Option<impl Into<Output<Option<Vec<ContainerUlimit>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Ulimits
where __Ulimits: IsUnset,

Same as Self::ulimits, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ulimits( self, value: impl Into<Output<Option<Vec<ContainerUlimit>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Ulimits
where __Ulimits: IsUnset,

Ulimit options to add.

source

pub fn maybe_uploads( self, value: Option<impl Into<Output<Option<Vec<ContainerUpload>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Uploads
where __Uploads: IsUnset,

Same as Self::uploads, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn uploads( self, value: impl Into<Output<Option<Vec<ContainerUpload>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Uploads
where __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.

source

pub fn maybe_user( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::User
where __User: IsUnset,

Same as Self::user, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn user( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::User
where __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.

source

pub fn maybe_userns_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::UsernsMode
where __UsernsMode: IsUnset,

Same as Self::userns_mode, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn userns_mode( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::UsernsMode
where __UsernsMode: IsUnset,

Sets the usernamespace mode for the container when usernamespace remapping option is enabled.

source

pub fn maybe_volumes( self, value: Option<impl Into<Output<Option<Vec<ContainerVolume>>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Volumes
where __Volumes: IsUnset,

Same as Self::volumes, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn volumes( self, value: impl Into<Output<Option<Vec<ContainerVolume>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Volumes
where __Volumes: IsUnset,

Spec for mounting volumes in the container.

source

pub fn maybe_wait( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Wait
where __Wait: IsUnset,

Same as Self::wait, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn wait( self, value: impl Into<Output<Option<bool>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::Wait
where __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.

source

pub fn maybe_wait_timeout( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeout
where __WaitTimeout: IsUnset,

Same as Self::wait_timeout, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn wait_timeout( self, value: impl Into<Output<Option<i32>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::WaitTimeout
where __WaitTimeout: IsUnset,

The timeout in seconds to wait the container to be healthy after creation. Defaults to 60.

source

pub fn maybe_working_dir( self, value: Option<impl Into<Output<Option<String>>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::WorkingDir
where __WorkingDir: IsUnset,

Same as Self::working_dir, but accepts an Option as input. See that method’s documentation for more details.

source

pub fn working_dir( self, value: impl Into<Output<Option<String>>>, ) -> <Self as __ContainerArgsBuilderSetMember>::WorkingDir
where __WorkingDir: IsUnset,

The working directory for commands to run in.

Auto Trait Implementations§

§

impl<___State> Freeze for ContainerArgsBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for ContainerArgsBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for ContainerArgsBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for ContainerArgsBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for ContainerArgsBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for ContainerArgsBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.