Modifiers | Name | Description |
---|---|---|
static class |
DockerCreateContainer.HostConfig.LogConfig |
Type | Name and description |
---|---|
Property<Boolean> |
autoRemove Automatically remove the container when the container's process exits. |
MapProperty<String, String> |
binds |
Property<String> |
cpuset |
ListProperty<String> |
devices |
ListProperty<String> |
dns |
ListProperty<String> |
extraHosts |
ListProperty<String> |
groups A list of additional groups that the container process will run as. |
Property<String> |
ipcMode The IPC mode for the container. |
ListProperty<String> |
links |
Property<LogConfig> |
logConfig |
Property<Long> |
memory |
Property<Long> |
memorySwap |
Property<String> |
network |
ListProperty<String> |
portBindings |
Property<Boolean> |
privileged |
Property<Boolean> |
publishAll |
Property<String> |
restartPolicy |
Property<Long> |
shmSize Size of /dev/shm in bytes. |
MapProperty<String, String> |
sysctls The namespaced kernel parameters (sysctls) in the container. |
ListProperty<String> |
volumesFrom |
Constructor and description |
---|
DockerCreateContainer.HostConfig
(ObjectFactory objectFactory) |
Automatically remove the container when the container's process exits.
This has no effect if restartPolicy is set.
A list of additional groups that the container process will run as.
The IPC mode for the container.
none
- Own private IPC namespace, with /dev/shm not mounted.private
- Own private IPC namespace.shareable" - Own private IPC namespace, with a possibility to share it with other containers.</li>
<li>{@code container <_name-or-ID_>
- Join another ("shareable") container’s IPC namespace.host
- Use the host system’s IPC namespace. Size of /dev/shm
in bytes.
The size must be greater than 0. If omitted the system uses 64MB.
The namespaced kernel parameters (sysctls) in the container.
For example, to turn on IP forwarding in the containers network namespace: sysctls = ['net.ipv4.ip_forward':'1']
Note:
Groovy Documentation