@pulumi/docker 3.1.0-alpha.1626976245 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/container.d.ts +264 -218
- package/container.js +19 -13
- package/container.js.map +1 -1
- package/getNetwork.d.ts +31 -24
- package/getNetwork.js +27 -3
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +18 -19
- package/getPlugin.js +17 -7
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +22 -9
- package/getRegistryImage.js +18 -4
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +61 -0
- package/getRemoteImage.js +61 -0
- package/getRemoteImage.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/network.d.ts +88 -60
- package/network.js +49 -6
- package/network.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/plugin.d.ts +60 -35
- package/plugin.js +34 -9
- package/plugin.js.map +1 -1
- package/registryImage.d.ts +119 -17
- package/registryImage.js +91 -2
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +118 -33
- package/remoteImage.js +75 -6
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +10 -10
- package/secret.js +1 -1
- package/service.d.ts +55 -29
- package/service.js +28 -2
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +14 -8
- package/serviceConfig.js +8 -2
- package/serviceConfig.js.map +1 -1
- package/types/input.d.ts +3 -692
- package/types/output.d.ts +3 -692
- package/volume.d.ts +44 -18
- package/volume.js +29 -6
- package/volume.js.map +1 -1
package/container.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* ## Import
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* ### Example Assuming you created a `container` as follows #!/bin/bash docker run --name foo -p8080:80 -d nginx
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as docker from "@pulumi/docker";
|
|
8
|
+
* # prints the container ID
|
|
11
9
|
*
|
|
12
|
-
*
|
|
13
|
-
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntuRemoteImage", {name: "ubuntu:precise"});
|
|
14
|
-
* // Start a container
|
|
15
|
-
* const ubuntuContainer = new docker.Container("ubuntuContainer", {image: ubuntuRemoteImage.latest});
|
|
16
|
-
* ```
|
|
10
|
+
* 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd you provide the definition for the resource as follows terraform resource "docker_container" "foo" {
|
|
17
11
|
*
|
|
18
|
-
*
|
|
12
|
+
* name
|
|
13
|
+
*
|
|
14
|
+
* = "foo"
|
|
15
|
+
*
|
|
16
|
+
* image = "nginx"
|
|
17
|
+
*
|
|
18
|
+
* ports {
|
|
19
|
+
*
|
|
20
|
+
* internal = "80"
|
|
19
21
|
*
|
|
20
|
-
*
|
|
22
|
+
* external = "8080"
|
|
23
|
+
*
|
|
24
|
+
* } } then the import command is as follows #!/bin/bash
|
|
21
25
|
*
|
|
22
26
|
* ```sh
|
|
23
|
-
* $ pulumi import docker:index/container:Container foo
|
|
27
|
+
* $ pulumi import docker:index/container:Container foo 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd
|
|
24
28
|
* ```
|
|
25
29
|
*/
|
|
26
30
|
export declare class Container extends pulumi.CustomResource {
|
|
@@ -40,7 +44,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
40
44
|
*/
|
|
41
45
|
static isInstance(obj: any): obj is Container;
|
|
42
46
|
/**
|
|
43
|
-
* If true attach to the container after its creation and waits the end of
|
|
47
|
+
* If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
44
48
|
*/
|
|
45
49
|
readonly attach: pulumi.Output<boolean | undefined>;
|
|
46
50
|
/**
|
|
@@ -48,13 +52,12 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
48
52
|
*/
|
|
49
53
|
readonly bridge: pulumi.Output<string>;
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
55
|
+
* Add or drop certrain linux capabilities.
|
|
52
56
|
*/
|
|
53
57
|
readonly capabilities: pulumi.Output<outputs.ContainerCapabilities | undefined>;
|
|
54
58
|
/**
|
|
55
|
-
* The command to use to start the
|
|
56
|
-
*
|
|
57
|
-
* command to be `["/usr/bin/myprogram", "-f", "baz.conf"]`.
|
|
59
|
+
* The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be
|
|
60
|
+
* `["/usr/bin/myprogram","-","baz.con"]`.
|
|
58
61
|
*/
|
|
59
62
|
readonly command: pulumi.Output<string[]>;
|
|
60
63
|
/**
|
|
@@ -70,23 +73,24 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
70
73
|
*/
|
|
71
74
|
readonly cpuShares: pulumi.Output<number | undefined>;
|
|
72
75
|
/**
|
|
73
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
76
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
77
|
+
* successful stop.
|
|
74
78
|
*/
|
|
75
79
|
readonly destroyGraceSeconds: pulumi.Output<number | undefined>;
|
|
76
80
|
/**
|
|
77
|
-
*
|
|
81
|
+
* Bind devices to the container.
|
|
78
82
|
*/
|
|
79
83
|
readonly devices: pulumi.Output<outputs.ContainerDevice[] | undefined>;
|
|
80
84
|
/**
|
|
81
|
-
*
|
|
85
|
+
* DNS servers to use.
|
|
82
86
|
*/
|
|
83
87
|
readonly dns: pulumi.Output<string[] | undefined>;
|
|
84
88
|
/**
|
|
85
|
-
*
|
|
89
|
+
* DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
86
90
|
*/
|
|
87
91
|
readonly dnsOpts: pulumi.Output<string[] | undefined>;
|
|
88
92
|
/**
|
|
89
|
-
*
|
|
93
|
+
* DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
90
94
|
*/
|
|
91
95
|
readonly dnsSearches: pulumi.Output<string[] | undefined>;
|
|
92
96
|
/**
|
|
@@ -94,34 +98,31 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
94
98
|
*/
|
|
95
99
|
readonly domainname: pulumi.Output<string | undefined>;
|
|
96
100
|
/**
|
|
97
|
-
* The command to use as the
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* when starting a container, set the entrypoint to be
|
|
101
|
-
* `["/usr/bin/myprogram"]`.
|
|
101
|
+
* The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an
|
|
102
|
+
* executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be
|
|
103
|
+
* `"/usr/bin/myprogra"]`.
|
|
102
104
|
*/
|
|
103
105
|
readonly entrypoints: pulumi.Output<string[]>;
|
|
104
106
|
/**
|
|
105
|
-
* Environment variables to set.
|
|
107
|
+
* Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
106
108
|
*/
|
|
107
109
|
readonly envs: pulumi.Output<string[]>;
|
|
108
110
|
/**
|
|
109
|
-
* The exit code of the container if its execution is done (`
|
|
111
|
+
* The exit code of the container if its execution is done (`must_run` must be disabled).
|
|
110
112
|
*/
|
|
111
113
|
readonly exitCode: pulumi.Output<number>;
|
|
112
114
|
/**
|
|
113
|
-
*
|
|
114
|
-
* NetworkSettings.
|
|
115
|
+
* The network gateway of the container.
|
|
115
116
|
*
|
|
116
|
-
* @deprecated Use
|
|
117
|
+
* @deprecated Use `network_data` instead. The network gateway of the container as read from its NetworkSettings.
|
|
117
118
|
*/
|
|
118
119
|
readonly gateway: pulumi.Output<string>;
|
|
119
120
|
/**
|
|
120
|
-
*
|
|
121
|
+
* Additional groups for the container user
|
|
121
122
|
*/
|
|
122
123
|
readonly groupAdds: pulumi.Output<string[] | undefined>;
|
|
123
124
|
/**
|
|
124
|
-
*
|
|
125
|
+
* A test to perform to check that the container is healthy
|
|
125
126
|
*/
|
|
126
127
|
readonly healthcheck: pulumi.Output<outputs.ContainerHealthcheck>;
|
|
127
128
|
/**
|
|
@@ -129,88 +130,94 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
129
130
|
*/
|
|
130
131
|
readonly hostname: pulumi.Output<string>;
|
|
131
132
|
/**
|
|
132
|
-
*
|
|
133
|
+
* Additional hosts to add to the container.
|
|
133
134
|
*/
|
|
134
135
|
readonly hosts: pulumi.Output<outputs.ContainerHost[] | undefined>;
|
|
135
136
|
/**
|
|
136
|
-
* The ID of the image to back this container.
|
|
137
|
-
*
|
|
138
|
-
* as is shown in the example above.
|
|
137
|
+
* The ID of the image to back this container. The easiest way to get this value is to use the `docker_image` resource as
|
|
138
|
+
* is shown in the example.
|
|
139
139
|
*/
|
|
140
140
|
readonly image: pulumi.Output<string>;
|
|
141
141
|
/**
|
|
142
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
142
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
143
|
+
* defaults.
|
|
143
144
|
*/
|
|
144
145
|
readonly init: pulumi.Output<boolean>;
|
|
145
146
|
/**
|
|
146
|
-
*
|
|
147
|
+
* The IP address of the container.
|
|
147
148
|
*
|
|
148
|
-
* @deprecated Use
|
|
149
|
+
* @deprecated Use `network_data` instead. The IP address of the container's first network it.
|
|
149
150
|
*/
|
|
150
151
|
readonly ipAddress: pulumi.Output<string>;
|
|
151
152
|
/**
|
|
152
|
-
*
|
|
153
|
-
* NetworkSettings.
|
|
153
|
+
* The IP prefix length of the container.
|
|
154
154
|
*
|
|
155
|
-
* @deprecated Use
|
|
155
|
+
* @deprecated Use `network_data` instead. The IP prefix length of the container as read from its NetworkSettings.
|
|
156
156
|
*/
|
|
157
157
|
readonly ipPrefixLength: pulumi.Output<number>;
|
|
158
158
|
/**
|
|
159
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
159
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
160
|
+
* `host`.
|
|
160
161
|
*/
|
|
161
162
|
readonly ipcMode: pulumi.Output<string>;
|
|
162
163
|
/**
|
|
163
|
-
*
|
|
164
|
+
* User-defined key/value metadata
|
|
164
165
|
*/
|
|
165
166
|
readonly labels: pulumi.Output<outputs.ContainerLabel[]>;
|
|
166
167
|
/**
|
|
167
|
-
* Set of links for link based
|
|
168
|
-
* connectivity between containers that are running on the same host.
|
|
168
|
+
* Set of links for link based connectivity between containers that are running on the same host.
|
|
169
169
|
*
|
|
170
170
|
* @deprecated The --link flag is a legacy feature of Docker. It may eventually be removed.
|
|
171
171
|
*/
|
|
172
172
|
readonly links: pulumi.Output<string[] | undefined>;
|
|
173
173
|
/**
|
|
174
|
-
* The logging driver to use for the container.
|
|
175
|
-
* Defaults to "json-file".
|
|
174
|
+
* The logging driver to use for the container. Defaults to `json-file`.
|
|
176
175
|
*/
|
|
177
176
|
readonly logDriver: pulumi.Output<string | undefined>;
|
|
178
177
|
/**
|
|
179
|
-
* Key/value pairs to use as options for
|
|
180
|
-
* the logging driver.
|
|
178
|
+
* Key/value pairs to use as options for the logging driver.
|
|
181
179
|
*/
|
|
182
180
|
readonly logOpts: pulumi.Output<{
|
|
183
181
|
[key: string]: any;
|
|
184
182
|
} | undefined>;
|
|
185
183
|
/**
|
|
186
|
-
* Save the container logs (`attach` must be enabled).
|
|
184
|
+
* Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
187
185
|
*/
|
|
188
186
|
readonly logs: pulumi.Output<boolean | undefined>;
|
|
189
187
|
/**
|
|
190
|
-
* The maximum amount of times to an attempt
|
|
191
|
-
* a restart when `restart` is set to "on-failure"
|
|
188
|
+
* The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
192
189
|
*/
|
|
193
190
|
readonly maxRetryCount: pulumi.Output<number | undefined>;
|
|
194
191
|
/**
|
|
195
192
|
* The memory limit for the container in MBs.
|
|
196
193
|
*/
|
|
197
194
|
readonly memory: pulumi.Output<number | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `terraform
|
|
197
|
+
* apply` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
198
|
+
*/
|
|
198
199
|
readonly memorySwap: pulumi.Output<number | undefined>;
|
|
199
200
|
/**
|
|
200
|
-
*
|
|
201
|
+
* Specification for mounts to be added to containers created as part of the service.
|
|
201
202
|
*/
|
|
202
203
|
readonly mounts: pulumi.Output<outputs.ContainerMount[] | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform
|
|
206
|
+
* assumes it is successful. Defaults to `true`.
|
|
207
|
+
*/
|
|
203
208
|
readonly mustRun: pulumi.Output<boolean | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* The name of the container.
|
|
211
|
+
*/
|
|
204
212
|
readonly name: pulumi.Output<string>;
|
|
205
213
|
/**
|
|
206
|
-
*
|
|
214
|
+
* Set an alias for the container in all specified networks
|
|
207
215
|
*
|
|
208
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
216
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
209
217
|
*/
|
|
210
218
|
readonly networkAliases: pulumi.Output<string[] | undefined>;
|
|
211
219
|
/**
|
|
212
|
-
*
|
|
213
|
-
* network. Key are the network names, values are the IP addresses.
|
|
220
|
+
* The data of the networks the container is connected to.
|
|
214
221
|
*/
|
|
215
222
|
readonly networkDatas: pulumi.Output<outputs.ContainerNetworkData[]>;
|
|
216
223
|
/**
|
|
@@ -218,26 +225,25 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
218
225
|
*/
|
|
219
226
|
readonly networkMode: pulumi.Output<string | undefined>;
|
|
220
227
|
/**
|
|
221
|
-
*
|
|
222
|
-
* container is. *Deprecated:* use `networksAdvanced` instead.
|
|
228
|
+
* ID of the networks in which the container is.
|
|
223
229
|
*
|
|
224
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
230
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
225
231
|
*/
|
|
226
232
|
readonly networks: pulumi.Output<string[] | undefined>;
|
|
227
233
|
/**
|
|
228
|
-
*
|
|
234
|
+
* The networks the container is attached to
|
|
229
235
|
*/
|
|
230
236
|
readonly networksAdvanced: pulumi.Output<outputs.ContainerNetworksAdvanced[] | undefined>;
|
|
231
237
|
/**
|
|
232
|
-
*
|
|
238
|
+
* he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
233
239
|
*/
|
|
234
240
|
readonly pidMode: pulumi.Output<string | undefined>;
|
|
235
241
|
/**
|
|
236
|
-
*
|
|
242
|
+
* Publish a container's port(s) to the host.
|
|
237
243
|
*/
|
|
238
244
|
readonly ports: pulumi.Output<outputs.ContainerPort[] | undefined>;
|
|
239
245
|
/**
|
|
240
|
-
*
|
|
246
|
+
* If `true`, the container runs in privileged mode.
|
|
241
247
|
*/
|
|
242
248
|
readonly privileged: pulumi.Output<boolean | undefined>;
|
|
243
249
|
/**
|
|
@@ -245,19 +251,25 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
245
251
|
*/
|
|
246
252
|
readonly publishAllPorts: pulumi.Output<boolean | undefined>;
|
|
247
253
|
/**
|
|
248
|
-
* If true
|
|
249
|
-
* Defaults to false.
|
|
254
|
+
* If `true`, the container will be started as readonly. Defaults to `false`.
|
|
250
255
|
*/
|
|
251
256
|
readonly readOnly: pulumi.Output<boolean | undefined>;
|
|
257
|
+
/**
|
|
258
|
+
* If `true`, it will remove anonymous volumes associated with the container. Defaults to `true`.
|
|
259
|
+
*/
|
|
252
260
|
readonly removeVolumes: pulumi.Output<boolean | undefined>;
|
|
253
261
|
/**
|
|
254
|
-
* The restart policy for the container. Must be
|
|
255
|
-
* one of "no", "on-failure", "always", "unless-stopped".
|
|
262
|
+
* The restart policy for the container. Must be one of 'no', 'on-failure', 'always', 'unless-stopped'. Defaults to `no`.
|
|
256
263
|
*/
|
|
257
264
|
readonly restart: pulumi.Output<string | undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* If `true`, then the container will be automatically removed after his execution. Terraform won't check this container
|
|
267
|
+
* after creation. Defaults to `false`.
|
|
268
|
+
*/
|
|
258
269
|
readonly rm: pulumi.Output<boolean | undefined>;
|
|
259
270
|
/**
|
|
260
|
-
*
|
|
271
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See
|
|
272
|
+
* https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
261
273
|
*/
|
|
262
274
|
readonly securityOpts: pulumi.Output<string[]>;
|
|
263
275
|
/**
|
|
@@ -265,14 +277,20 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
265
277
|
*/
|
|
266
278
|
readonly shmSize: pulumi.Output<number>;
|
|
267
279
|
/**
|
|
268
|
-
* If true
|
|
269
|
-
*
|
|
280
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
281
|
+
* Defaults to `true`.
|
|
270
282
|
*/
|
|
271
283
|
readonly start: pulumi.Output<boolean | undefined>;
|
|
272
284
|
/**
|
|
273
|
-
*
|
|
285
|
+
* If `true`, keep STDIN open even if not attached (`docker run -i`). Defaults to `false`.
|
|
274
286
|
*/
|
|
275
287
|
readonly stdinOpen: pulumi.Output<boolean | undefined>;
|
|
288
|
+
/**
|
|
289
|
+
* Key/value pairs for the storage driver options, e.g. `size`: `120G`
|
|
290
|
+
*/
|
|
291
|
+
readonly storageOpts: pulumi.Output<{
|
|
292
|
+
[key: string]: any;
|
|
293
|
+
} | undefined>;
|
|
276
294
|
/**
|
|
277
295
|
* A map of kernel parameters (sysctls) to set in the container.
|
|
278
296
|
*/
|
|
@@ -286,22 +304,21 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
286
304
|
[key: string]: any;
|
|
287
305
|
} | undefined>;
|
|
288
306
|
/**
|
|
289
|
-
*
|
|
307
|
+
* If `true`, allocate a pseudo-tty (`docker run -t`). Defaults to `false`.
|
|
290
308
|
*/
|
|
291
309
|
readonly tty: pulumi.Output<boolean | undefined>;
|
|
292
310
|
/**
|
|
293
|
-
*
|
|
294
|
-
* details.
|
|
311
|
+
* Ulimit options to add.
|
|
295
312
|
*/
|
|
296
313
|
readonly ulimits: pulumi.Output<outputs.ContainerUlimit[] | undefined>;
|
|
297
314
|
/**
|
|
298
|
-
*
|
|
315
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `content_base64` can be set and
|
|
316
|
+
* at least one of them has to be set.
|
|
299
317
|
*/
|
|
300
318
|
readonly uploads: pulumi.Output<outputs.ContainerUpload[] | undefined>;
|
|
301
319
|
/**
|
|
302
|
-
* User used for run the first process. Format is
|
|
303
|
-
*
|
|
304
|
-
* by name.
|
|
320
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by
|
|
321
|
+
* name.
|
|
305
322
|
*/
|
|
306
323
|
readonly user: pulumi.Output<string | undefined>;
|
|
307
324
|
/**
|
|
@@ -309,11 +326,11 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
309
326
|
*/
|
|
310
327
|
readonly usernsMode: pulumi.Output<string | undefined>;
|
|
311
328
|
/**
|
|
312
|
-
*
|
|
329
|
+
* Spec for mounting volumes in the container.
|
|
313
330
|
*/
|
|
314
331
|
readonly volumes: pulumi.Output<outputs.ContainerVolume[] | undefined>;
|
|
315
332
|
/**
|
|
316
|
-
* The working directory for commands to run in
|
|
333
|
+
* The working directory for commands to run in.
|
|
317
334
|
*/
|
|
318
335
|
readonly workingDir: pulumi.Output<string | undefined>;
|
|
319
336
|
/**
|
|
@@ -330,7 +347,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
330
347
|
*/
|
|
331
348
|
export interface ContainerState {
|
|
332
349
|
/**
|
|
333
|
-
* If true attach to the container after its creation and waits the end of
|
|
350
|
+
* If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
334
351
|
*/
|
|
335
352
|
readonly attach?: pulumi.Input<boolean>;
|
|
336
353
|
/**
|
|
@@ -338,13 +355,12 @@ export interface ContainerState {
|
|
|
338
355
|
*/
|
|
339
356
|
readonly bridge?: pulumi.Input<string>;
|
|
340
357
|
/**
|
|
341
|
-
*
|
|
358
|
+
* Add or drop certrain linux capabilities.
|
|
342
359
|
*/
|
|
343
360
|
readonly capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
|
|
344
361
|
/**
|
|
345
|
-
* The command to use to start the
|
|
346
|
-
*
|
|
347
|
-
* command to be `["/usr/bin/myprogram", "-f", "baz.conf"]`.
|
|
362
|
+
* The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be
|
|
363
|
+
* `["/usr/bin/myprogram","-","baz.con"]`.
|
|
348
364
|
*/
|
|
349
365
|
readonly command?: pulumi.Input<pulumi.Input<string>[]>;
|
|
350
366
|
/**
|
|
@@ -360,23 +376,24 @@ export interface ContainerState {
|
|
|
360
376
|
*/
|
|
361
377
|
readonly cpuShares?: pulumi.Input<number>;
|
|
362
378
|
/**
|
|
363
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
379
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
380
|
+
* successful stop.
|
|
364
381
|
*/
|
|
365
382
|
readonly destroyGraceSeconds?: pulumi.Input<number>;
|
|
366
383
|
/**
|
|
367
|
-
*
|
|
384
|
+
* Bind devices to the container.
|
|
368
385
|
*/
|
|
369
386
|
readonly devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
|
|
370
387
|
/**
|
|
371
|
-
*
|
|
388
|
+
* DNS servers to use.
|
|
372
389
|
*/
|
|
373
390
|
readonly dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
374
391
|
/**
|
|
375
|
-
*
|
|
392
|
+
* DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
376
393
|
*/
|
|
377
394
|
readonly dnsOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
378
395
|
/**
|
|
379
|
-
*
|
|
396
|
+
* DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
380
397
|
*/
|
|
381
398
|
readonly dnsSearches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
382
399
|
/**
|
|
@@ -384,34 +401,31 @@ export interface ContainerState {
|
|
|
384
401
|
*/
|
|
385
402
|
readonly domainname?: pulumi.Input<string>;
|
|
386
403
|
/**
|
|
387
|
-
* The command to use as the
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* when starting a container, set the entrypoint to be
|
|
391
|
-
* `["/usr/bin/myprogram"]`.
|
|
404
|
+
* The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an
|
|
405
|
+
* executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be
|
|
406
|
+
* `"/usr/bin/myprogra"]`.
|
|
392
407
|
*/
|
|
393
408
|
readonly entrypoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
394
409
|
/**
|
|
395
|
-
* Environment variables to set.
|
|
410
|
+
* Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
396
411
|
*/
|
|
397
412
|
readonly envs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
398
413
|
/**
|
|
399
|
-
* The exit code of the container if its execution is done (`
|
|
414
|
+
* The exit code of the container if its execution is done (`must_run` must be disabled).
|
|
400
415
|
*/
|
|
401
416
|
readonly exitCode?: pulumi.Input<number>;
|
|
402
417
|
/**
|
|
403
|
-
*
|
|
404
|
-
* NetworkSettings.
|
|
418
|
+
* The network gateway of the container.
|
|
405
419
|
*
|
|
406
|
-
* @deprecated Use
|
|
420
|
+
* @deprecated Use `network_data` instead. The network gateway of the container as read from its NetworkSettings.
|
|
407
421
|
*/
|
|
408
422
|
readonly gateway?: pulumi.Input<string>;
|
|
409
423
|
/**
|
|
410
|
-
*
|
|
424
|
+
* Additional groups for the container user
|
|
411
425
|
*/
|
|
412
426
|
readonly groupAdds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
413
427
|
/**
|
|
414
|
-
*
|
|
428
|
+
* A test to perform to check that the container is healthy
|
|
415
429
|
*/
|
|
416
430
|
readonly healthcheck?: pulumi.Input<inputs.ContainerHealthcheck>;
|
|
417
431
|
/**
|
|
@@ -419,88 +433,94 @@ export interface ContainerState {
|
|
|
419
433
|
*/
|
|
420
434
|
readonly hostname?: pulumi.Input<string>;
|
|
421
435
|
/**
|
|
422
|
-
*
|
|
436
|
+
* Additional hosts to add to the container.
|
|
423
437
|
*/
|
|
424
438
|
readonly hosts?: pulumi.Input<pulumi.Input<inputs.ContainerHost>[]>;
|
|
425
439
|
/**
|
|
426
|
-
* The ID of the image to back this container.
|
|
427
|
-
*
|
|
428
|
-
* as is shown in the example above.
|
|
440
|
+
* The ID of the image to back this container. The easiest way to get this value is to use the `docker_image` resource as
|
|
441
|
+
* is shown in the example.
|
|
429
442
|
*/
|
|
430
443
|
readonly image?: pulumi.Input<string>;
|
|
431
444
|
/**
|
|
432
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
445
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
446
|
+
* defaults.
|
|
433
447
|
*/
|
|
434
448
|
readonly init?: pulumi.Input<boolean>;
|
|
435
449
|
/**
|
|
436
|
-
*
|
|
450
|
+
* The IP address of the container.
|
|
437
451
|
*
|
|
438
|
-
* @deprecated Use
|
|
452
|
+
* @deprecated Use `network_data` instead. The IP address of the container's first network it.
|
|
439
453
|
*/
|
|
440
454
|
readonly ipAddress?: pulumi.Input<string>;
|
|
441
455
|
/**
|
|
442
|
-
*
|
|
443
|
-
* NetworkSettings.
|
|
456
|
+
* The IP prefix length of the container.
|
|
444
457
|
*
|
|
445
|
-
* @deprecated Use
|
|
458
|
+
* @deprecated Use `network_data` instead. The IP prefix length of the container as read from its NetworkSettings.
|
|
446
459
|
*/
|
|
447
460
|
readonly ipPrefixLength?: pulumi.Input<number>;
|
|
448
461
|
/**
|
|
449
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
462
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
463
|
+
* `host`.
|
|
450
464
|
*/
|
|
451
465
|
readonly ipcMode?: pulumi.Input<string>;
|
|
452
466
|
/**
|
|
453
|
-
*
|
|
467
|
+
* User-defined key/value metadata
|
|
454
468
|
*/
|
|
455
469
|
readonly labels?: pulumi.Input<pulumi.Input<inputs.ContainerLabel>[]>;
|
|
456
470
|
/**
|
|
457
|
-
* Set of links for link based
|
|
458
|
-
* connectivity between containers that are running on the same host.
|
|
471
|
+
* Set of links for link based connectivity between containers that are running on the same host.
|
|
459
472
|
*
|
|
460
473
|
* @deprecated The --link flag is a legacy feature of Docker. It may eventually be removed.
|
|
461
474
|
*/
|
|
462
475
|
readonly links?: pulumi.Input<pulumi.Input<string>[]>;
|
|
463
476
|
/**
|
|
464
|
-
* The logging driver to use for the container.
|
|
465
|
-
* Defaults to "json-file".
|
|
477
|
+
* The logging driver to use for the container. Defaults to `json-file`.
|
|
466
478
|
*/
|
|
467
479
|
readonly logDriver?: pulumi.Input<string>;
|
|
468
480
|
/**
|
|
469
|
-
* Key/value pairs to use as options for
|
|
470
|
-
* the logging driver.
|
|
481
|
+
* Key/value pairs to use as options for the logging driver.
|
|
471
482
|
*/
|
|
472
483
|
readonly logOpts?: pulumi.Input<{
|
|
473
484
|
[key: string]: any;
|
|
474
485
|
}>;
|
|
475
486
|
/**
|
|
476
|
-
* Save the container logs (`attach` must be enabled).
|
|
487
|
+
* Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
477
488
|
*/
|
|
478
489
|
readonly logs?: pulumi.Input<boolean>;
|
|
479
490
|
/**
|
|
480
|
-
* The maximum amount of times to an attempt
|
|
481
|
-
* a restart when `restart` is set to "on-failure"
|
|
491
|
+
* The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
482
492
|
*/
|
|
483
493
|
readonly maxRetryCount?: pulumi.Input<number>;
|
|
484
494
|
/**
|
|
485
495
|
* The memory limit for the container in MBs.
|
|
486
496
|
*/
|
|
487
497
|
readonly memory?: pulumi.Input<number>;
|
|
498
|
+
/**
|
|
499
|
+
* The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `terraform
|
|
500
|
+
* apply` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
501
|
+
*/
|
|
488
502
|
readonly memorySwap?: pulumi.Input<number>;
|
|
489
503
|
/**
|
|
490
|
-
*
|
|
504
|
+
* Specification for mounts to be added to containers created as part of the service.
|
|
491
505
|
*/
|
|
492
506
|
readonly mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
|
|
507
|
+
/**
|
|
508
|
+
* If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform
|
|
509
|
+
* assumes it is successful. Defaults to `true`.
|
|
510
|
+
*/
|
|
493
511
|
readonly mustRun?: pulumi.Input<boolean>;
|
|
512
|
+
/**
|
|
513
|
+
* The name of the container.
|
|
514
|
+
*/
|
|
494
515
|
readonly name?: pulumi.Input<string>;
|
|
495
516
|
/**
|
|
496
|
-
*
|
|
517
|
+
* Set an alias for the container in all specified networks
|
|
497
518
|
*
|
|
498
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
519
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
499
520
|
*/
|
|
500
521
|
readonly networkAliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
501
522
|
/**
|
|
502
|
-
*
|
|
503
|
-
* network. Key are the network names, values are the IP addresses.
|
|
523
|
+
* The data of the networks the container is connected to.
|
|
504
524
|
*/
|
|
505
525
|
readonly networkDatas?: pulumi.Input<pulumi.Input<inputs.ContainerNetworkData>[]>;
|
|
506
526
|
/**
|
|
@@ -508,26 +528,25 @@ export interface ContainerState {
|
|
|
508
528
|
*/
|
|
509
529
|
readonly networkMode?: pulumi.Input<string>;
|
|
510
530
|
/**
|
|
511
|
-
*
|
|
512
|
-
* container is. *Deprecated:* use `networksAdvanced` instead.
|
|
531
|
+
* ID of the networks in which the container is.
|
|
513
532
|
*
|
|
514
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
533
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
515
534
|
*/
|
|
516
535
|
readonly networks?: pulumi.Input<pulumi.Input<string>[]>;
|
|
517
536
|
/**
|
|
518
|
-
*
|
|
537
|
+
* The networks the container is attached to
|
|
519
538
|
*/
|
|
520
539
|
readonly networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
|
|
521
540
|
/**
|
|
522
|
-
*
|
|
541
|
+
* he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
523
542
|
*/
|
|
524
543
|
readonly pidMode?: pulumi.Input<string>;
|
|
525
544
|
/**
|
|
526
|
-
*
|
|
545
|
+
* Publish a container's port(s) to the host.
|
|
527
546
|
*/
|
|
528
547
|
readonly ports?: pulumi.Input<pulumi.Input<inputs.ContainerPort>[]>;
|
|
529
548
|
/**
|
|
530
|
-
*
|
|
549
|
+
* If `true`, the container runs in privileged mode.
|
|
531
550
|
*/
|
|
532
551
|
readonly privileged?: pulumi.Input<boolean>;
|
|
533
552
|
/**
|
|
@@ -535,19 +554,25 @@ export interface ContainerState {
|
|
|
535
554
|
*/
|
|
536
555
|
readonly publishAllPorts?: pulumi.Input<boolean>;
|
|
537
556
|
/**
|
|
538
|
-
* If true
|
|
539
|
-
* Defaults to false.
|
|
557
|
+
* If `true`, the container will be started as readonly. Defaults to `false`.
|
|
540
558
|
*/
|
|
541
559
|
readonly readOnly?: pulumi.Input<boolean>;
|
|
560
|
+
/**
|
|
561
|
+
* If `true`, it will remove anonymous volumes associated with the container. Defaults to `true`.
|
|
562
|
+
*/
|
|
542
563
|
readonly removeVolumes?: pulumi.Input<boolean>;
|
|
543
564
|
/**
|
|
544
|
-
* The restart policy for the container. Must be
|
|
545
|
-
* one of "no", "on-failure", "always", "unless-stopped".
|
|
565
|
+
* The restart policy for the container. Must be one of 'no', 'on-failure', 'always', 'unless-stopped'. Defaults to `no`.
|
|
546
566
|
*/
|
|
547
567
|
readonly restart?: pulumi.Input<string>;
|
|
568
|
+
/**
|
|
569
|
+
* If `true`, then the container will be automatically removed after his execution. Terraform won't check this container
|
|
570
|
+
* after creation. Defaults to `false`.
|
|
571
|
+
*/
|
|
548
572
|
readonly rm?: pulumi.Input<boolean>;
|
|
549
573
|
/**
|
|
550
|
-
*
|
|
574
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See
|
|
575
|
+
* https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
551
576
|
*/
|
|
552
577
|
readonly securityOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
553
578
|
/**
|
|
@@ -555,14 +580,20 @@ export interface ContainerState {
|
|
|
555
580
|
*/
|
|
556
581
|
readonly shmSize?: pulumi.Input<number>;
|
|
557
582
|
/**
|
|
558
|
-
* If true
|
|
559
|
-
*
|
|
583
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
584
|
+
* Defaults to `true`.
|
|
560
585
|
*/
|
|
561
586
|
readonly start?: pulumi.Input<boolean>;
|
|
562
587
|
/**
|
|
563
|
-
*
|
|
588
|
+
* If `true`, keep STDIN open even if not attached (`docker run -i`). Defaults to `false`.
|
|
564
589
|
*/
|
|
565
590
|
readonly stdinOpen?: pulumi.Input<boolean>;
|
|
591
|
+
/**
|
|
592
|
+
* Key/value pairs for the storage driver options, e.g. `size`: `120G`
|
|
593
|
+
*/
|
|
594
|
+
readonly storageOpts?: pulumi.Input<{
|
|
595
|
+
[key: string]: any;
|
|
596
|
+
}>;
|
|
566
597
|
/**
|
|
567
598
|
* A map of kernel parameters (sysctls) to set in the container.
|
|
568
599
|
*/
|
|
@@ -576,22 +607,21 @@ export interface ContainerState {
|
|
|
576
607
|
[key: string]: any;
|
|
577
608
|
}>;
|
|
578
609
|
/**
|
|
579
|
-
*
|
|
610
|
+
* If `true`, allocate a pseudo-tty (`docker run -t`). Defaults to `false`.
|
|
580
611
|
*/
|
|
581
612
|
readonly tty?: pulumi.Input<boolean>;
|
|
582
613
|
/**
|
|
583
|
-
*
|
|
584
|
-
* details.
|
|
614
|
+
* Ulimit options to add.
|
|
585
615
|
*/
|
|
586
616
|
readonly ulimits?: pulumi.Input<pulumi.Input<inputs.ContainerUlimit>[]>;
|
|
587
617
|
/**
|
|
588
|
-
*
|
|
618
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `content_base64` can be set and
|
|
619
|
+
* at least one of them has to be set.
|
|
589
620
|
*/
|
|
590
621
|
readonly uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
|
|
591
622
|
/**
|
|
592
|
-
* User used for run the first process. Format is
|
|
593
|
-
*
|
|
594
|
-
* by name.
|
|
623
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by
|
|
624
|
+
* name.
|
|
595
625
|
*/
|
|
596
626
|
readonly user?: pulumi.Input<string>;
|
|
597
627
|
/**
|
|
@@ -599,11 +629,11 @@ export interface ContainerState {
|
|
|
599
629
|
*/
|
|
600
630
|
readonly usernsMode?: pulumi.Input<string>;
|
|
601
631
|
/**
|
|
602
|
-
*
|
|
632
|
+
* Spec for mounting volumes in the container.
|
|
603
633
|
*/
|
|
604
634
|
readonly volumes?: pulumi.Input<pulumi.Input<inputs.ContainerVolume>[]>;
|
|
605
635
|
/**
|
|
606
|
-
* The working directory for commands to run in
|
|
636
|
+
* The working directory for commands to run in.
|
|
607
637
|
*/
|
|
608
638
|
readonly workingDir?: pulumi.Input<string>;
|
|
609
639
|
}
|
|
@@ -612,17 +642,16 @@ export interface ContainerState {
|
|
|
612
642
|
*/
|
|
613
643
|
export interface ContainerArgs {
|
|
614
644
|
/**
|
|
615
|
-
* If true attach to the container after its creation and waits the end of
|
|
645
|
+
* If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
616
646
|
*/
|
|
617
647
|
readonly attach?: pulumi.Input<boolean>;
|
|
618
648
|
/**
|
|
619
|
-
*
|
|
649
|
+
* Add or drop certrain linux capabilities.
|
|
620
650
|
*/
|
|
621
651
|
readonly capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
|
|
622
652
|
/**
|
|
623
|
-
* The command to use to start the
|
|
624
|
-
*
|
|
625
|
-
* command to be `["/usr/bin/myprogram", "-f", "baz.conf"]`.
|
|
653
|
+
* The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be
|
|
654
|
+
* `["/usr/bin/myprogram","-","baz.con"]`.
|
|
626
655
|
*/
|
|
627
656
|
readonly command?: pulumi.Input<pulumi.Input<string>[]>;
|
|
628
657
|
/**
|
|
@@ -634,23 +663,24 @@ export interface ContainerArgs {
|
|
|
634
663
|
*/
|
|
635
664
|
readonly cpuShares?: pulumi.Input<number>;
|
|
636
665
|
/**
|
|
637
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
666
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
667
|
+
* successful stop.
|
|
638
668
|
*/
|
|
639
669
|
readonly destroyGraceSeconds?: pulumi.Input<number>;
|
|
640
670
|
/**
|
|
641
|
-
*
|
|
671
|
+
* Bind devices to the container.
|
|
642
672
|
*/
|
|
643
673
|
readonly devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
|
|
644
674
|
/**
|
|
645
|
-
*
|
|
675
|
+
* DNS servers to use.
|
|
646
676
|
*/
|
|
647
677
|
readonly dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
648
678
|
/**
|
|
649
|
-
*
|
|
679
|
+
* DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
650
680
|
*/
|
|
651
681
|
readonly dnsOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
652
682
|
/**
|
|
653
|
-
*
|
|
683
|
+
* DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
654
684
|
*/
|
|
655
685
|
readonly dnsSearches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
656
686
|
/**
|
|
@@ -658,23 +688,21 @@ export interface ContainerArgs {
|
|
|
658
688
|
*/
|
|
659
689
|
readonly domainname?: pulumi.Input<string>;
|
|
660
690
|
/**
|
|
661
|
-
* The command to use as the
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
* when starting a container, set the entrypoint to be
|
|
665
|
-
* `["/usr/bin/myprogram"]`.
|
|
691
|
+
* The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an
|
|
692
|
+
* executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be
|
|
693
|
+
* `"/usr/bin/myprogra"]`.
|
|
666
694
|
*/
|
|
667
695
|
readonly entrypoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
668
696
|
/**
|
|
669
|
-
* Environment variables to set.
|
|
697
|
+
* Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
670
698
|
*/
|
|
671
699
|
readonly envs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
672
700
|
/**
|
|
673
|
-
*
|
|
701
|
+
* Additional groups for the container user
|
|
674
702
|
*/
|
|
675
703
|
readonly groupAdds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
676
704
|
/**
|
|
677
|
-
*
|
|
705
|
+
* A test to perform to check that the container is healthy
|
|
678
706
|
*/
|
|
679
707
|
readonly healthcheck?: pulumi.Input<inputs.ContainerHealthcheck>;
|
|
680
708
|
/**
|
|
@@ -682,70 +710,78 @@ export interface ContainerArgs {
|
|
|
682
710
|
*/
|
|
683
711
|
readonly hostname?: pulumi.Input<string>;
|
|
684
712
|
/**
|
|
685
|
-
*
|
|
713
|
+
* Additional hosts to add to the container.
|
|
686
714
|
*/
|
|
687
715
|
readonly hosts?: pulumi.Input<pulumi.Input<inputs.ContainerHost>[]>;
|
|
688
716
|
/**
|
|
689
|
-
* The ID of the image to back this container.
|
|
690
|
-
*
|
|
691
|
-
* as is shown in the example above.
|
|
717
|
+
* The ID of the image to back this container. The easiest way to get this value is to use the `docker_image` resource as
|
|
718
|
+
* is shown in the example.
|
|
692
719
|
*/
|
|
693
720
|
readonly image: pulumi.Input<string>;
|
|
694
721
|
/**
|
|
695
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
722
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
723
|
+
* defaults.
|
|
696
724
|
*/
|
|
697
725
|
readonly init?: pulumi.Input<boolean>;
|
|
698
726
|
/**
|
|
699
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
727
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
728
|
+
* `host`.
|
|
700
729
|
*/
|
|
701
730
|
readonly ipcMode?: pulumi.Input<string>;
|
|
702
731
|
/**
|
|
703
|
-
*
|
|
732
|
+
* User-defined key/value metadata
|
|
704
733
|
*/
|
|
705
734
|
readonly labels?: pulumi.Input<pulumi.Input<inputs.ContainerLabel>[]>;
|
|
706
735
|
/**
|
|
707
|
-
* Set of links for link based
|
|
708
|
-
* connectivity between containers that are running on the same host.
|
|
736
|
+
* Set of links for link based connectivity between containers that are running on the same host.
|
|
709
737
|
*
|
|
710
738
|
* @deprecated The --link flag is a legacy feature of Docker. It may eventually be removed.
|
|
711
739
|
*/
|
|
712
740
|
readonly links?: pulumi.Input<pulumi.Input<string>[]>;
|
|
713
741
|
/**
|
|
714
|
-
* The logging driver to use for the container.
|
|
715
|
-
* Defaults to "json-file".
|
|
742
|
+
* The logging driver to use for the container. Defaults to `json-file`.
|
|
716
743
|
*/
|
|
717
744
|
readonly logDriver?: pulumi.Input<string>;
|
|
718
745
|
/**
|
|
719
|
-
* Key/value pairs to use as options for
|
|
720
|
-
* the logging driver.
|
|
746
|
+
* Key/value pairs to use as options for the logging driver.
|
|
721
747
|
*/
|
|
722
748
|
readonly logOpts?: pulumi.Input<{
|
|
723
749
|
[key: string]: any;
|
|
724
750
|
}>;
|
|
725
751
|
/**
|
|
726
|
-
* Save the container logs (`attach` must be enabled).
|
|
752
|
+
* Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
727
753
|
*/
|
|
728
754
|
readonly logs?: pulumi.Input<boolean>;
|
|
729
755
|
/**
|
|
730
|
-
* The maximum amount of times to an attempt
|
|
731
|
-
* a restart when `restart` is set to "on-failure"
|
|
756
|
+
* The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
732
757
|
*/
|
|
733
758
|
readonly maxRetryCount?: pulumi.Input<number>;
|
|
734
759
|
/**
|
|
735
760
|
* The memory limit for the container in MBs.
|
|
736
761
|
*/
|
|
737
762
|
readonly memory?: pulumi.Input<number>;
|
|
763
|
+
/**
|
|
764
|
+
* The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `terraform
|
|
765
|
+
* apply` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
766
|
+
*/
|
|
738
767
|
readonly memorySwap?: pulumi.Input<number>;
|
|
739
768
|
/**
|
|
740
|
-
*
|
|
769
|
+
* Specification for mounts to be added to containers created as part of the service.
|
|
741
770
|
*/
|
|
742
771
|
readonly mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
|
|
772
|
+
/**
|
|
773
|
+
* If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform
|
|
774
|
+
* assumes it is successful. Defaults to `true`.
|
|
775
|
+
*/
|
|
743
776
|
readonly mustRun?: pulumi.Input<boolean>;
|
|
777
|
+
/**
|
|
778
|
+
* The name of the container.
|
|
779
|
+
*/
|
|
744
780
|
readonly name?: pulumi.Input<string>;
|
|
745
781
|
/**
|
|
746
|
-
*
|
|
782
|
+
* Set an alias for the container in all specified networks
|
|
747
783
|
*
|
|
748
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
784
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
749
785
|
*/
|
|
750
786
|
readonly networkAliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
751
787
|
/**
|
|
@@ -753,26 +789,25 @@ export interface ContainerArgs {
|
|
|
753
789
|
*/
|
|
754
790
|
readonly networkMode?: pulumi.Input<string>;
|
|
755
791
|
/**
|
|
756
|
-
*
|
|
757
|
-
* container is. *Deprecated:* use `networksAdvanced` instead.
|
|
792
|
+
* ID of the networks in which the container is.
|
|
758
793
|
*
|
|
759
|
-
* @deprecated Use networks_advanced instead. Will be removed in
|
|
794
|
+
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
760
795
|
*/
|
|
761
796
|
readonly networks?: pulumi.Input<pulumi.Input<string>[]>;
|
|
762
797
|
/**
|
|
763
|
-
*
|
|
798
|
+
* The networks the container is attached to
|
|
764
799
|
*/
|
|
765
800
|
readonly networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
|
|
766
801
|
/**
|
|
767
|
-
*
|
|
802
|
+
* he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
768
803
|
*/
|
|
769
804
|
readonly pidMode?: pulumi.Input<string>;
|
|
770
805
|
/**
|
|
771
|
-
*
|
|
806
|
+
* Publish a container's port(s) to the host.
|
|
772
807
|
*/
|
|
773
808
|
readonly ports?: pulumi.Input<pulumi.Input<inputs.ContainerPort>[]>;
|
|
774
809
|
/**
|
|
775
|
-
*
|
|
810
|
+
* If `true`, the container runs in privileged mode.
|
|
776
811
|
*/
|
|
777
812
|
readonly privileged?: pulumi.Input<boolean>;
|
|
778
813
|
/**
|
|
@@ -780,19 +815,25 @@ export interface ContainerArgs {
|
|
|
780
815
|
*/
|
|
781
816
|
readonly publishAllPorts?: pulumi.Input<boolean>;
|
|
782
817
|
/**
|
|
783
|
-
* If true
|
|
784
|
-
* Defaults to false.
|
|
818
|
+
* If `true`, the container will be started as readonly. Defaults to `false`.
|
|
785
819
|
*/
|
|
786
820
|
readonly readOnly?: pulumi.Input<boolean>;
|
|
821
|
+
/**
|
|
822
|
+
* If `true`, it will remove anonymous volumes associated with the container. Defaults to `true`.
|
|
823
|
+
*/
|
|
787
824
|
readonly removeVolumes?: pulumi.Input<boolean>;
|
|
788
825
|
/**
|
|
789
|
-
* The restart policy for the container. Must be
|
|
790
|
-
* one of "no", "on-failure", "always", "unless-stopped".
|
|
826
|
+
* The restart policy for the container. Must be one of 'no', 'on-failure', 'always', 'unless-stopped'. Defaults to `no`.
|
|
791
827
|
*/
|
|
792
828
|
readonly restart?: pulumi.Input<string>;
|
|
829
|
+
/**
|
|
830
|
+
* If `true`, then the container will be automatically removed after his execution. Terraform won't check this container
|
|
831
|
+
* after creation. Defaults to `false`.
|
|
832
|
+
*/
|
|
793
833
|
readonly rm?: pulumi.Input<boolean>;
|
|
794
834
|
/**
|
|
795
|
-
*
|
|
835
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See
|
|
836
|
+
* https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
796
837
|
*/
|
|
797
838
|
readonly securityOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
798
839
|
/**
|
|
@@ -800,14 +841,20 @@ export interface ContainerArgs {
|
|
|
800
841
|
*/
|
|
801
842
|
readonly shmSize?: pulumi.Input<number>;
|
|
802
843
|
/**
|
|
803
|
-
* If true
|
|
804
|
-
*
|
|
844
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
845
|
+
* Defaults to `true`.
|
|
805
846
|
*/
|
|
806
847
|
readonly start?: pulumi.Input<boolean>;
|
|
807
848
|
/**
|
|
808
|
-
*
|
|
849
|
+
* If `true`, keep STDIN open even if not attached (`docker run -i`). Defaults to `false`.
|
|
809
850
|
*/
|
|
810
851
|
readonly stdinOpen?: pulumi.Input<boolean>;
|
|
852
|
+
/**
|
|
853
|
+
* Key/value pairs for the storage driver options, e.g. `size`: `120G`
|
|
854
|
+
*/
|
|
855
|
+
readonly storageOpts?: pulumi.Input<{
|
|
856
|
+
[key: string]: any;
|
|
857
|
+
}>;
|
|
811
858
|
/**
|
|
812
859
|
* A map of kernel parameters (sysctls) to set in the container.
|
|
813
860
|
*/
|
|
@@ -821,22 +868,21 @@ export interface ContainerArgs {
|
|
|
821
868
|
[key: string]: any;
|
|
822
869
|
}>;
|
|
823
870
|
/**
|
|
824
|
-
*
|
|
871
|
+
* If `true`, allocate a pseudo-tty (`docker run -t`). Defaults to `false`.
|
|
825
872
|
*/
|
|
826
873
|
readonly tty?: pulumi.Input<boolean>;
|
|
827
874
|
/**
|
|
828
|
-
*
|
|
829
|
-
* details.
|
|
875
|
+
* Ulimit options to add.
|
|
830
876
|
*/
|
|
831
877
|
readonly ulimits?: pulumi.Input<pulumi.Input<inputs.ContainerUlimit>[]>;
|
|
832
878
|
/**
|
|
833
|
-
*
|
|
879
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `content_base64` can be set and
|
|
880
|
+
* at least one of them has to be set.
|
|
834
881
|
*/
|
|
835
882
|
readonly uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
|
|
836
883
|
/**
|
|
837
|
-
* User used for run the first process. Format is
|
|
838
|
-
*
|
|
839
|
-
* by name.
|
|
884
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by
|
|
885
|
+
* name.
|
|
840
886
|
*/
|
|
841
887
|
readonly user?: pulumi.Input<string>;
|
|
842
888
|
/**
|
|
@@ -844,11 +890,11 @@ export interface ContainerArgs {
|
|
|
844
890
|
*/
|
|
845
891
|
readonly usernsMode?: pulumi.Input<string>;
|
|
846
892
|
/**
|
|
847
|
-
*
|
|
893
|
+
* Spec for mounting volumes in the container.
|
|
848
894
|
*/
|
|
849
895
|
readonly volumes?: pulumi.Input<pulumi.Input<inputs.ContainerVolume>[]>;
|
|
850
896
|
/**
|
|
851
|
-
* The working directory for commands to run in
|
|
897
|
+
* The working directory for commands to run in.
|
|
852
898
|
*/
|
|
853
899
|
readonly workingDir?: pulumi.Input<string>;
|
|
854
900
|
}
|