Class: Ansible::Ruby::Modules::Docker_container

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#blkio_weightObject?

Returns Block IO (relative weight), between 10 and 1000.

Returns:

  • (Object, nil)

    Block IO (relative weight), between 10 and 1000.



10
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 10

attribute :blkio_weight

#capabilitiesObject?

Returns List of capabilities to add to the container.

Returns:

  • (Object, nil)

    List of capabilities to add to the container.



13
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 13

attribute :capabilities

#commandString?

Returns Command or list of commands to execute in the container when it starts.

Returns:

  • (String, nil)

    Command or list of commands to execute in the container when it starts.



16
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 16

attribute :command

#cpu_periodInteger?

Returns Limit CPU CFS (Completely Fair Scheduler) period.

Returns:

  • (Integer, nil)

    Limit CPU CFS (Completely Fair Scheduler) period



20
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 20

attribute :cpu_period

#cpu_quotaInteger?

Returns Limit CPU CFS (Completely Fair Scheduler) quota.

Returns:

  • (Integer, nil)

    Limit CPU CFS (Completely Fair Scheduler) quota



24
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 24

attribute :cpu_quota

#cpu_sharesObject?

Returns CPU shares (relative weight).

Returns:

  • (Object, nil)

    CPU shares (relative weight).



34
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 34

attribute :cpu_shares

#cpuset_cpusObject?

Returns CPUs in which to allow execution C(1,3) or C(1-3).

Returns:

  • (Object, nil)

    CPUs in which to allow execution C(1,3) or C(1-3).



28
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 28

attribute :cpuset_cpus

#cpuset_memsObject?

Returns Memory nodes (MEMs) in which to allow execution C(0-3) or C(0,1).

Returns:

  • (Object, nil)

    Memory nodes (MEMs) in which to allow execution C(0-3) or C(0,1)



31
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 31

attribute :cpuset_mems

#detachBoolean?

Returns Enable detached mode to leave the container running in background. If disabled, the task will reflect the status of the container run (failed if the command failed).

Returns:

  • (Boolean, nil)

    Enable detached mode to leave the container running in background. If disabled, the task will reflect the status of the container run (failed if the command failed).



37
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 37

attribute :detach

#devicesArray<String>, ...

Returns List of host device bindings to add to the container. Each binding is a mapping expressed in the format: <path_on_host>:<path_in_container>:<cgroup_permissions>.

Returns:

  • (Array<String>, String, nil)

    List of host device bindings to add to the container. Each binding is a mapping expressed in the format: <path_on_host>:<path_in_container>:<cgroup_permissions>



41
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 41

attribute :devices

#dns_search_domainsObject?

Returns List of custom DNS search domains.

Returns:

  • (Object, nil)

    List of custom DNS search domains.



48
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 48

attribute :dns_search_domains

#dns_serversObject?

Returns List of custom DNS servers.

Returns:

  • (Object, nil)

    List of custom DNS servers.



45
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 45

attribute :dns_servers

#entrypointObject?

Returns String or list of commands that overwrite the default ENTRYPOINT of the image.

Returns:

  • (Object, nil)

    String or list of commands that overwrite the default ENTRYPOINT of the image.



58
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 58

attribute :entrypoint

#envHash?

Returns Dictionary of key,value pairs.

Returns:

  • (Hash, nil)

    Dictionary of key,value pairs.



51
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 51

attribute :env

#env_fileObject?

Returns Path to a file containing environment variables I(FOO=BAR).,If variable also present in C(env), then C(env) value will override.,Requires docker-py >= 1.4.0.

Returns:

  • (Object, nil)

    Path to a file containing environment variables I(FOO=BAR).,If variable also present in C(env), then C(env) value will override.,Requires docker-py >= 1.4.0.



55
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 55

attribute :env_file

#etc_hostsObject?

Returns Dict of host-to-IP mappings, where each host name is a key in the dictionary. Each host name will be added to the container’s /etc/hosts file.

Returns:

  • (Object, nil)

    Dict of host-to-IP mappings, where each host name is a key in the dictionary. Each host name will be added to the container’s /etc/hosts file.



61
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 61

attribute :etc_hosts

#exposed_portsArray<Integer>, ...

Returns List of additional container ports to expose for port mappings or links. If the port is already exposed using EXPOSE in a Dockerfile, it does not need to be xposed again.

Returns:

  • (Array<Integer>, Integer, nil)

    List of additional container ports to expose for port mappings or links. If the port is already exposed using EXPOSE in a Dockerfile, it does not need to be xposed again.



64
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 64

attribute :exposed_ports

#force_killBoolean?

Returns Use the kill command when stopping a running container.

Returns:

  • (Boolean, nil)

    Use the kill command when stopping a running container.



68
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 68

attribute :force_kill

#groupsObject?

Returns List of additional group names and/or IDs that the container process will run as.

Returns:

  • (Object, nil)

    List of additional group names and/or IDs that the container process will run as.



72
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 72

attribute :groups

#hostnameObject?

Returns Container hostname.

Returns:

  • (Object, nil)

    Container hostname.



75
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 75

attribute :hostname

#ignore_imageBoolean?

Returns When C(state) is I(present) or I(started) the module compares the configuration of an existing container to requested configuration. The evaluation includes the image version. If the image vesion in the registry does not match the container, the container will be recreated. Stop this behavior by setting C(ignore_image) to I(True).

Returns:

  • (Boolean, nil)

    When C(state) is I(present) or I(started) the module compares the configuration of an existing container to requested configuration. The evaluation includes the image version. If the image vesion in the registry does not match the container, the container will be recreated. Stop this behavior by setting C(ignore_image) to I(True).



78
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 78

attribute :ignore_image

#imageString?

Returns Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, ‘latest’ will be used.

Returns:

  • (String, nil)

    Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, ‘latest’ will be used.



82
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 82

attribute :image

#interactiveBoolean?

Returns Keep stdin open after a container is launched, even if not attached.

Returns:

  • (Boolean, nil)

    Keep stdin open after a container is launched, even if not attached.



86
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 86

attribute :interactive

#ipc_modeObject?

Returns Set the IPC mode for the container. Can be one of ‘container:<name|id>’ to reuse another container’s IPC namespace or ‘host’ to use the host’s IPC namespace within the container.

Returns:

  • (Object, nil)

    Set the IPC mode for the container. Can be one of ‘container:<name|id>’ to reuse another container’s IPC namespace or ‘host’ to use the host’s IPC namespace within the container.



90
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 90

attribute :ipc_mode

#keep_volumesBoolean?

Returns Retain volumes associated with a removed container.

Returns:

  • (Boolean, nil)

    Retain volumes associated with a removed container.



93
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 93

attribute :keep_volumes

#kernel_memoryInteger?

Returns Kernel memory limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g. Minimum is 4M.

Returns:

  • (Integer, nil)

    Kernel memory limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g. Minimum is 4M.



100
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 100

attribute :kernel_memory

#kill_signalObject?

Returns Override default signal used to kill a running container.

Returns:

  • (Object, nil)

    Override default signal used to kill a running container.



97
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 97

attribute :kill_signal

#labelsObject?

Returns Dictionary of key value pairs.

Returns:

  • (Object, nil)

    Dictionary of key value pairs.



104
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 104

attribute :labels

Returns List of name aliases for linked containers in the format C(container_name:alias).

Returns:

  • (Array<String>, String, nil)

    List of name aliases for linked containers in the format C(container_name:alias)



107
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 107

attribute :links

#log_driver:"json-file", ...

Returns Specify the logging driver.

Returns:

  • (:"json-file", :syslog, :journald, :gelf, :fluentd, :awslogs, :splunk, nil)

    Specify the logging driver.



111
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 111

attribute :log_driver

#log_optionsHash?

Returns Dictionary of options specific to the chosen log_driver. See docs.docker.com/engine/admin/logging/overview/ for details.

Returns:



115
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 115

attribute :log_options

#mac_addressObject?

Returns Container MAC address (e.g. 92:d0:c6:0a:29:33).

Returns:

  • (Object, nil)

    Container MAC address (e.g. 92:d0:c6:0a:29:33)



119
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 119

attribute :mac_address

#memoryInteger?

Returns Memory limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g.

Returns:

  • (Integer, nil)

    Memory limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g



122
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 122

attribute :memory

#memory_reservationInteger?

Returns Memory soft limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g.

Returns:

  • (Integer, nil)

    Memory soft limit (format: <number>). Number is a positive integer. Unit can be one of b, k, m, or g



126
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 126

attribute :memory_reservation

#memory_swapInteger?

Returns Total memory limit (memory + swap, format:<number>). Number is a positive integer. Unit can be one of b, k, m, or g.

Returns:

  • (Integer, nil)

    Total memory limit (memory + swap, format:<number>). Number is a positive integer. Unit can be one of b, k, m, or g.



130
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 130

attribute :memory_swap

#memory_swappinessInteger?

Returns Tune a container’s memory swappiness behavior. Accepts an integer between 0 and 100.

Returns:

  • (Integer, nil)

    Tune a container’s memory swappiness behavior. Accepts an integer between 0 and 100.



134
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 134

attribute :memory_swappiness

#nameString

Returns Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.

Returns:

  • (String)

    Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.



138
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 138

attribute :name

#network_mode:bridge, ...

Returns Connect the container to a network.

Returns:

  • (:bridge, :"container:<name|id>", :host, :none, nil)

    Connect the container to a network.



142
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 142

attribute :network_mode

#networksArray<Hash>, ...

Returns List of networks the container belongs to.,Each network is a dict with keys C(name), C(ipv4_address), C(ipv6_address), C(links), C(aliases).,For each network C(name) is required, all other keys are optional.,If included, C(links) or C(aliases) are lists.,For examples of the data structure and usage see EXAMPLES below.,To remove a container from one or more networks, use the C(purge_networks) option.

Returns:

  • (Array<Hash>, Hash, nil)

    List of networks the container belongs to.,Each network is a dict with keys C(name), C(ipv4_address), C(ipv6_address), C(links), C(aliases).,For each network C(name) is required, all other keys are optional.,If included, C(links) or C(aliases) are lists.,For examples of the data structure and usage see EXAMPLES below.,To remove a container from one or more networks, use the C(purge_networks) option.



146
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 146

attribute :networks

#oom_killerBoolean?

Returns Whether or not to disable OOM Killer for the container.

Returns:

  • (Boolean, nil)

    Whether or not to disable OOM Killer for the container.



150
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 150

attribute :oom_killer

#pausedBoolean?

Returns Use with the started state to pause running processes inside the container.

Returns:

  • (Boolean, nil)

    Use with the started state to pause running processes inside the container.



154
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 154

attribute :paused

#pid_modeObject?

Returns Set the PID namespace mode for the container. Currenly only supports ‘host’.

Returns:

  • (Object, nil)

    Set the PID namespace mode for the container. Currenly only supports ‘host’.



158
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 158

attribute :pid_mode

#privilegedBoolean?

Returns Give extended privileges to the container.

Returns:

  • (Boolean, nil)

    Give extended privileges to the container.



161
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 161

attribute :privileged

#published_portsObject?

Returns List of ports to publish from the container to the host.,Use docker CLI syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000), where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface.,Container ports must be exposed either in the Dockerfile or via the C(expose) option.,A value of ALL will publish all exposed container ports to random host ports, ignoring any other mappings.

Returns:

  • (Object, nil)

    List of ports to publish from the container to the host.,Use docker CLI syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000), where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is a host interface.,Container ports must be exposed either in the Dockerfile or via the C(expose) option.,A value of ALL will publish all exposed container ports to random host ports, ignoring any other mappings.



165
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 165

attribute :published_ports

#pullBoolean?

Returns If true, always pull the latest version of an image. Otherwise, will only pull an image when missing.

Returns:

  • (Boolean, nil)

    If true, always pull the latest version of an image. Otherwise, will only pull an image when missing.



168
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 168

attribute :pull

#purge_networksBoolean?

Returns Remove the container from ALL networks not included in C(networks) parameter.,Any default networks such as I(bridge), if not found in C(networks), will be removed as well.

Returns:

  • (Boolean, nil)

    Remove the container from ALL networks not included in C(networks) parameter.,Any default networks such as I(bridge), if not found in C(networks), will be removed as well.



172
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 172

attribute :purge_networks

#read_onlyBoolean?

Returns Mount the container’s root file system as read-only.

Returns:

  • (Boolean, nil)

    Mount the container’s root file system as read-only.



176
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 176

attribute :read_only

#recreateBoolean?

Returns Use with present and started states to force the re-creation of an existing container.

Returns:

  • (Boolean, nil)

    Use with present and started states to force the re-creation of an existing container.



180
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 180

attribute :recreate

#restartBoolean?

Returns Use with started state to force a matching container to be stopped and restarted.

Returns:

  • (Boolean, nil)

    Use with started state to force a matching container to be stopped and restarted.



184
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 184

attribute :restart

#restart_policy:always, ...

Returns Container restart policy. Place quotes around I(no) option.

Returns:

  • (:always, false, :"on-failure", :"unless-stopped", nil)

    Container restart policy. Place quotes around I(no) option.



188
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 188

attribute :restart_policy

#restart_retriesInteger?

Returns Use with restart policy to control maximum number of restart attempts.

Returns:

  • (Integer, nil)

    Use with restart policy to control maximum number of restart attempts.



192
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 192

attribute :restart_retries

#security_optsObject?

Returns List of security options in the form of C(“label:user:User”).

Returns:

  • (Object, nil)

    List of security options in the form of C(“label:user:User”)



199
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 199

attribute :security_opts

#shm_sizeObject?

Returns Size of ‘/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`. Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes).,Ommitting the unit defaults to bytes. If you omit the size entirely, the system uses `64m`.

Returns:

  • (Object, nil)

    Size of ‘/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`. Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes).,Ommitting the unit defaults to bytes. If you omit the size entirely, the system uses `64m`.



196
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 196

attribute :shm_size

#state:absent, ...

Returns I(absent) - A container matching the specified name will be stopped and removed. Use force_kill to kill the container rather than stopping it. Use keep_volumes to retain volumes associated with the removed container.,I(present)“ - Asserts the existence of a container matching the name and any provided configuration parameters. If no container matches the name, a container will be created. If a container matches the name but the provided configuration does not match, the container will be updated, if it can be. If it cannot be updated, it will be removed and re-created with the requested config. Image version will be taken into account when comparing configuration. To ignore image version use the ignore_image option. Use the recreate option to force the re-creation of the matching container. Use force_kill to kill the container rather than stopping it. Use keep_volumes to retain volumes associated with a removed container.,I(started) - Asserts there is a running container matching the name and any provided configuration. If no container matches the name, a container will be created and started. If a container matching the name is found but the configuration does not match, the container will be updated, if it can be. If it cannot be updated, it will be removed and a new container will be created with the requested configuration and started. Image version will be taken into account when comparing configuration. To ignore image version use the ignore_image option. Use recreate to always re-create a matching container, even if it is running. Use restart to force a matching container to be stopped and restarted. Use force_kill to kill a container rather than stopping it. Use keep_volumes to retain volumes associated with a removed container.,I(stopped) - Asserts that the container is first I(present), and then if the container is running moves it to a stopped state. Use force_kill to kill a container rather than stopping it.

Returns:

  • (:absent, :present, :stopped, :started, nil)

    I(absent) - A container matching the specified name will be stopped and removed. Use force_kill to kill the container rather than stopping it. Use keep_volumes to retain volumes associated with the removed container.,I(present)“ - Asserts the existence of a container matching the name and any provided configuration parameters. If no container matches the name, a container will be created. If a container matches the name but the provided configuration does not match, the container will be updated, if it can be. If it cannot be updated, it will be removed and re-created with the requested config. Image version will be taken into account when comparing configuration. To ignore image version use the ignore_image option. Use the recreate option to force the re-creation of the matching container. Use force_kill to kill the container rather than stopping it. Use keep_volumes to retain volumes associated with a removed container.,I(started) - Asserts there is a running container matching the name and any provided configuration. If no container matches the name, a container will be created and started. If a container matching the name is found but the configuration does not match, the container will be updated, if it can be. If it cannot be updated, it will be removed and a new container will be created with the requested configuration and started. Image version will be taken into account when comparing configuration. To ignore image version use the ignore_image option. Use recreate to always re-create a matching container, even if it is running. Use restart to force a matching container to be stopped and restarted. Use force_kill to kill a container rather than stopping it. Use keep_volumes to retain volumes associated with a removed container.,I(stopped) - Asserts that the container is first I(present), and then if the container is running moves it to a stopped state. Use force_kill to kill a container rather than stopping it.



202
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 202

attribute :state

#stop_signalObject?

Returns Override default signal used to stop the container.

Returns:

  • (Object, nil)

    Override default signal used to stop the container.



206
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 206

attribute :stop_signal

#stop_timeoutObject?

Returns Number of seconds to wait for the container to stop before sending SIGKILL.

Returns:

  • (Object, nil)

    Number of seconds to wait for the container to stop before sending SIGKILL.



209
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 209

attribute :stop_timeout

#trust_image_contentBoolean?

Returns If true, skip image verification.

Returns:

  • (Boolean, nil)

    If true, skip image verification.



212
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 212

attribute :trust_image_content

#ttyBoolean?

Returns Allocate a psuedo-TTY.

Returns:

  • (Boolean, nil)

    Allocate a psuedo-TTY.



216
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 216

attribute :tty

#ulimitsObject?

Returns List of ulimit options. A ulimit is specified as C(nofile:262144:262144).

Returns:

  • (Object, nil)

    List of ulimit options. A ulimit is specified as C(nofile:262144:262144)



220
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 220

attribute :ulimits

#userObject?

Returns Sets the username or UID used and optionally the groupname or GID for the specified command.,Can be [ user | user:group | uid | uid:gid | user:gid | uid:group ].

Returns:

  • (Object, nil)

    Sets the username or UID used and optionally the groupname or GID for the specified command.,Can be [ user | user:group | uid | uid:gid | user:gid | uid:group ]



223
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 223

attribute :user

#utsObject?

Returns Set the UTS namespace mode for the container.

Returns:

  • (Object, nil)

    Set the UTS namespace mode for the container.



226
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 226

attribute :uts

#volume_driverString?

Returns The container’s volume driver.

Returns:

  • (String, nil)

    The container’s volume driver.



233
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 233

attribute :volume_driver

#volumesArray<String>, ...

Returns List of volumes to mount within the container.,Use docker CLI-style syntax: C(/host:/container),You can specify a read mode for the mount with either C(ro) or C(rw).,SELinux hosts can additionally use C(z) or C(Z) to use a shared or private label for the volume.

Returns:

  • (Array<String>, String, nil)

    List of volumes to mount within the container.,Use docker CLI-style syntax: C(/host:/container),You can specify a read mode for the mount with either C(ro) or C(rw).,SELinux hosts can additionally use C(z) or C(Z) to use a shared or private label for the volume.



229
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 229

attribute :volumes

#volumes_fromArray<String>, ...

Returns List of container names or Ids to get volumes from.

Returns:

  • (Array<String>, String, nil)

    List of container names or Ids to get volumes from.



237
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_container.rb', line 237

attribute :volumes_from