@pulumi/docker 3.1.0 → 3.2.0-alpha.1638817875
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/README.md +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +6 -6
- package/config/vars.js +38 -22
- package/config/vars.js.map +1 -1
- package/container.d.ts +168 -186
- package/container.js +16 -0
- package/container.js.map +1 -1
- package/docker.js +1 -0
- package/docker.js.map +1 -1
- package/getNetwork.d.ts +36 -28
- package/getNetwork.js +6 -27
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +43 -16
- package/getPlugin.js +5 -14
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +31 -18
- package/getRegistryImage.js +5 -16
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +24 -20
- package/getRemoteImage.js +9 -19
- package/getRemoteImage.js.map +1 -1
- package/image.js +1 -0
- package/image.js.map +1 -1
- package/index.js +28 -20
- package/index.js.map +1 -1
- package/network.d.ts +29 -78
- package/network.js +1 -43
- package/network.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/plugin.d.ts +20 -51
- package/plugin.js +2 -32
- package/plugin.js.map +1 -1
- package/provider.d.ts +26 -6
- package/provider.js +2 -1
- package/provider.js.map +1 -1
- package/registryImage.d.ts +12 -100
- package/registryImage.js +1 -85
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +24 -73
- package/remoteImage.js +1 -40
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +7 -7
- package/secret.js +2 -1
- package/secret.js.map +1 -1
- package/service.d.ts +18 -18
- package/service.js +1 -0
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +4 -4
- package/serviceConfig.js +1 -0
- package/serviceConfig.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +423 -0
- package/types/output.d.ts +423 -7
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
- package/utils.js +1 -0
- package/utils.js.map +1 -1
- package/volume.d.ts +9 -32
- package/volume.js +1 -23
- package/volume.js.map +1 -1
package/container.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
+
* <!-- Bug: Type and Name are switched -->
|
|
5
|
+
* Manages the lifecycle of a Docker container.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as docker from "@pulumi/docker";
|
|
12
|
+
*
|
|
13
|
+
* // Find the latest Ubuntu precise image.
|
|
14
|
+
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntuRemoteImage", {name: "ubuntu:precise"});
|
|
15
|
+
* // Start a container
|
|
16
|
+
* const ubuntuContainer = new docker.Container("ubuntuContainer", {image: ubuntuRemoteImage.latest});
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
4
19
|
* ## Import
|
|
5
20
|
*
|
|
6
21
|
* ### Example Assuming you created a `container` as follows #!/bin/bash docker run --name foo -p8080:80 -d nginx
|
|
@@ -56,8 +71,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
56
71
|
*/
|
|
57
72
|
readonly capabilities: pulumi.Output<outputs.ContainerCapabilities | undefined>;
|
|
58
73
|
/**
|
|
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"]`.
|
|
74
|
+
* 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","-","baz.con"]`.
|
|
61
75
|
*/
|
|
62
76
|
readonly command: pulumi.Output<string[]>;
|
|
63
77
|
/**
|
|
@@ -73,8 +87,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
73
87
|
*/
|
|
74
88
|
readonly cpuShares: pulumi.Output<number | undefined>;
|
|
75
89
|
/**
|
|
76
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
77
|
-
* successful stop.
|
|
90
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
78
91
|
*/
|
|
79
92
|
readonly destroyGraceSeconds: pulumi.Output<number | undefined>;
|
|
80
93
|
/**
|
|
@@ -98,9 +111,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
98
111
|
*/
|
|
99
112
|
readonly domainname: pulumi.Output<string | undefined>;
|
|
100
113
|
/**
|
|
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"]`.
|
|
114
|
+
* 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"]`.
|
|
104
115
|
*/
|
|
105
116
|
readonly entrypoints: pulumi.Output<string[]>;
|
|
106
117
|
/**
|
|
@@ -108,7 +119,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
108
119
|
*/
|
|
109
120
|
readonly envs: pulumi.Output<string[]>;
|
|
110
121
|
/**
|
|
111
|
-
* The exit code of the container if its execution is done (`
|
|
122
|
+
* The exit code of the container if its execution is done (`mustRun` must be disabled).
|
|
112
123
|
*/
|
|
113
124
|
readonly exitCode: pulumi.Output<number>;
|
|
114
125
|
/**
|
|
@@ -134,13 +145,11 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
134
145
|
*/
|
|
135
146
|
readonly hosts: pulumi.Output<outputs.ContainerHost[] | undefined>;
|
|
136
147
|
/**
|
|
137
|
-
* The ID of the image to back this container. The easiest way to get this value is to use the `
|
|
138
|
-
* is shown in the example.
|
|
148
|
+
* 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.
|
|
139
149
|
*/
|
|
140
150
|
readonly image: pulumi.Output<string>;
|
|
141
151
|
/**
|
|
142
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
143
|
-
* defaults.
|
|
152
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
144
153
|
*/
|
|
145
154
|
readonly init: pulumi.Output<boolean>;
|
|
146
155
|
/**
|
|
@@ -156,8 +165,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
156
165
|
*/
|
|
157
166
|
readonly ipPrefixLength: pulumi.Output<number>;
|
|
158
167
|
/**
|
|
159
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
160
|
-
* `host`.
|
|
168
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
161
169
|
*/
|
|
162
170
|
readonly ipcMode: pulumi.Output<string>;
|
|
163
171
|
/**
|
|
@@ -268,8 +276,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
268
276
|
*/
|
|
269
277
|
readonly rm: pulumi.Output<boolean | undefined>;
|
|
270
278
|
/**
|
|
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.
|
|
279
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
273
280
|
*/
|
|
274
281
|
readonly securityOpts: pulumi.Output<string[]>;
|
|
275
282
|
/**
|
|
@@ -277,8 +284,7 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
277
284
|
*/
|
|
278
285
|
readonly shmSize: pulumi.Output<number>;
|
|
279
286
|
/**
|
|
280
|
-
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
281
|
-
* Defaults to `true`.
|
|
287
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created. Defaults to `true`.
|
|
282
288
|
*/
|
|
283
289
|
readonly start: pulumi.Output<boolean | undefined>;
|
|
284
290
|
/**
|
|
@@ -312,13 +318,11 @@ export declare class Container extends pulumi.CustomResource {
|
|
|
312
318
|
*/
|
|
313
319
|
readonly ulimits: pulumi.Output<outputs.ContainerUlimit[] | undefined>;
|
|
314
320
|
/**
|
|
315
|
-
* Specifies files to upload to the container before starting it. Only one of `content` or `
|
|
316
|
-
* at least one of them has to be set.
|
|
321
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `contentBase64` can be set and at least one of them has to be set.
|
|
317
322
|
*/
|
|
318
323
|
readonly uploads: pulumi.Output<outputs.ContainerUpload[] | undefined>;
|
|
319
324
|
/**
|
|
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.
|
|
325
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
322
326
|
*/
|
|
323
327
|
readonly user: pulumi.Output<string | undefined>;
|
|
324
328
|
/**
|
|
@@ -349,293 +353,282 @@ export interface ContainerState {
|
|
|
349
353
|
/**
|
|
350
354
|
* If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
351
355
|
*/
|
|
352
|
-
|
|
356
|
+
attach?: pulumi.Input<boolean>;
|
|
353
357
|
/**
|
|
354
358
|
* The network bridge of the container as read from its NetworkSettings.
|
|
355
359
|
*/
|
|
356
|
-
|
|
360
|
+
bridge?: pulumi.Input<string>;
|
|
357
361
|
/**
|
|
358
362
|
* Add or drop certrain linux capabilities.
|
|
359
363
|
*/
|
|
360
|
-
|
|
364
|
+
capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
|
|
361
365
|
/**
|
|
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"]`.
|
|
366
|
+
* 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","-","baz.con"]`.
|
|
364
367
|
*/
|
|
365
|
-
|
|
368
|
+
command?: pulumi.Input<pulumi.Input<string>[]>;
|
|
366
369
|
/**
|
|
367
370
|
* The logs of the container if its execution is done (`attach` must be disabled).
|
|
368
371
|
*/
|
|
369
|
-
|
|
372
|
+
containerLogs?: pulumi.Input<string>;
|
|
370
373
|
/**
|
|
371
374
|
* A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
372
375
|
*/
|
|
373
|
-
|
|
376
|
+
cpuSet?: pulumi.Input<string>;
|
|
374
377
|
/**
|
|
375
378
|
* CPU shares (relative weight) for the container.
|
|
376
379
|
*/
|
|
377
|
-
|
|
380
|
+
cpuShares?: pulumi.Input<number>;
|
|
378
381
|
/**
|
|
379
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
380
|
-
* successful stop.
|
|
382
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
381
383
|
*/
|
|
382
|
-
|
|
384
|
+
destroyGraceSeconds?: pulumi.Input<number>;
|
|
383
385
|
/**
|
|
384
386
|
* Bind devices to the container.
|
|
385
387
|
*/
|
|
386
|
-
|
|
388
|
+
devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
|
|
387
389
|
/**
|
|
388
390
|
* DNS servers to use.
|
|
389
391
|
*/
|
|
390
|
-
|
|
392
|
+
dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
391
393
|
/**
|
|
392
394
|
* DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
393
395
|
*/
|
|
394
|
-
|
|
396
|
+
dnsOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
395
397
|
/**
|
|
396
398
|
* DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
397
399
|
*/
|
|
398
|
-
|
|
400
|
+
dnsSearches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
399
401
|
/**
|
|
400
402
|
* Domain name of the container.
|
|
401
403
|
*/
|
|
402
|
-
|
|
404
|
+
domainname?: pulumi.Input<string>;
|
|
403
405
|
/**
|
|
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"]`.
|
|
406
|
+
* 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"]`.
|
|
407
407
|
*/
|
|
408
|
-
|
|
408
|
+
entrypoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
409
409
|
/**
|
|
410
410
|
* Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
411
411
|
*/
|
|
412
|
-
|
|
412
|
+
envs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
413
413
|
/**
|
|
414
|
-
* The exit code of the container if its execution is done (`
|
|
414
|
+
* The exit code of the container if its execution is done (`mustRun` must be disabled).
|
|
415
415
|
*/
|
|
416
|
-
|
|
416
|
+
exitCode?: pulumi.Input<number>;
|
|
417
417
|
/**
|
|
418
418
|
* The network gateway of the container.
|
|
419
419
|
*
|
|
420
420
|
* @deprecated Use `network_data` instead. The network gateway of the container as read from its NetworkSettings.
|
|
421
421
|
*/
|
|
422
|
-
|
|
422
|
+
gateway?: pulumi.Input<string>;
|
|
423
423
|
/**
|
|
424
424
|
* Additional groups for the container user
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
groupAdds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
427
427
|
/**
|
|
428
428
|
* A test to perform to check that the container is healthy
|
|
429
429
|
*/
|
|
430
|
-
|
|
430
|
+
healthcheck?: pulumi.Input<inputs.ContainerHealthcheck>;
|
|
431
431
|
/**
|
|
432
432
|
* Hostname of the container.
|
|
433
433
|
*/
|
|
434
|
-
|
|
434
|
+
hostname?: pulumi.Input<string>;
|
|
435
435
|
/**
|
|
436
436
|
* Additional hosts to add to the container.
|
|
437
437
|
*/
|
|
438
|
-
|
|
438
|
+
hosts?: pulumi.Input<pulumi.Input<inputs.ContainerHost>[]>;
|
|
439
439
|
/**
|
|
440
|
-
* The ID of the image to back this container. The easiest way to get this value is to use the `
|
|
441
|
-
* is shown in the example.
|
|
440
|
+
* 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.
|
|
442
441
|
*/
|
|
443
|
-
|
|
442
|
+
image?: pulumi.Input<string>;
|
|
444
443
|
/**
|
|
445
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
446
|
-
* defaults.
|
|
444
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
447
445
|
*/
|
|
448
|
-
|
|
446
|
+
init?: pulumi.Input<boolean>;
|
|
449
447
|
/**
|
|
450
448
|
* The IP address of the container.
|
|
451
449
|
*
|
|
452
450
|
* @deprecated Use `network_data` instead. The IP address of the container's first network it.
|
|
453
451
|
*/
|
|
454
|
-
|
|
452
|
+
ipAddress?: pulumi.Input<string>;
|
|
455
453
|
/**
|
|
456
454
|
* The IP prefix length of the container.
|
|
457
455
|
*
|
|
458
456
|
* @deprecated Use `network_data` instead. The IP prefix length of the container as read from its NetworkSettings.
|
|
459
457
|
*/
|
|
460
|
-
|
|
458
|
+
ipPrefixLength?: pulumi.Input<number>;
|
|
461
459
|
/**
|
|
462
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
463
|
-
* `host`.
|
|
460
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
464
461
|
*/
|
|
465
|
-
|
|
462
|
+
ipcMode?: pulumi.Input<string>;
|
|
466
463
|
/**
|
|
467
464
|
* User-defined key/value metadata
|
|
468
465
|
*/
|
|
469
|
-
|
|
466
|
+
labels?: pulumi.Input<pulumi.Input<inputs.ContainerLabel>[]>;
|
|
470
467
|
/**
|
|
471
468
|
* Set of links for link based connectivity between containers that are running on the same host.
|
|
472
469
|
*
|
|
473
470
|
* @deprecated The --link flag is a legacy feature of Docker. It may eventually be removed.
|
|
474
471
|
*/
|
|
475
|
-
|
|
472
|
+
links?: pulumi.Input<pulumi.Input<string>[]>;
|
|
476
473
|
/**
|
|
477
474
|
* The logging driver to use for the container. Defaults to `json-file`.
|
|
478
475
|
*/
|
|
479
|
-
|
|
476
|
+
logDriver?: pulumi.Input<string>;
|
|
480
477
|
/**
|
|
481
478
|
* Key/value pairs to use as options for the logging driver.
|
|
482
479
|
*/
|
|
483
|
-
|
|
480
|
+
logOpts?: pulumi.Input<{
|
|
484
481
|
[key: string]: any;
|
|
485
482
|
}>;
|
|
486
483
|
/**
|
|
487
484
|
* Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
488
485
|
*/
|
|
489
|
-
|
|
486
|
+
logs?: pulumi.Input<boolean>;
|
|
490
487
|
/**
|
|
491
488
|
* The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
492
489
|
*/
|
|
493
|
-
|
|
490
|
+
maxRetryCount?: pulumi.Input<number>;
|
|
494
491
|
/**
|
|
495
492
|
* The memory limit for the container in MBs.
|
|
496
493
|
*/
|
|
497
|
-
|
|
494
|
+
memory?: pulumi.Input<number>;
|
|
498
495
|
/**
|
|
499
496
|
* The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `terraform
|
|
500
497
|
* apply` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
501
498
|
*/
|
|
502
|
-
|
|
499
|
+
memorySwap?: pulumi.Input<number>;
|
|
503
500
|
/**
|
|
504
501
|
* Specification for mounts to be added to containers created as part of the service.
|
|
505
502
|
*/
|
|
506
|
-
|
|
503
|
+
mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
|
|
507
504
|
/**
|
|
508
505
|
* If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform
|
|
509
506
|
* assumes it is successful. Defaults to `true`.
|
|
510
507
|
*/
|
|
511
|
-
|
|
508
|
+
mustRun?: pulumi.Input<boolean>;
|
|
512
509
|
/**
|
|
513
510
|
* The name of the container.
|
|
514
511
|
*/
|
|
515
|
-
|
|
512
|
+
name?: pulumi.Input<string>;
|
|
516
513
|
/**
|
|
517
514
|
* Set an alias for the container in all specified networks
|
|
518
515
|
*
|
|
519
516
|
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
520
517
|
*/
|
|
521
|
-
|
|
518
|
+
networkAliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
522
519
|
/**
|
|
523
520
|
* The data of the networks the container is connected to.
|
|
524
521
|
*/
|
|
525
|
-
|
|
522
|
+
networkDatas?: pulumi.Input<pulumi.Input<inputs.ContainerNetworkData>[]>;
|
|
526
523
|
/**
|
|
527
524
|
* Network mode of the container.
|
|
528
525
|
*/
|
|
529
|
-
|
|
526
|
+
networkMode?: pulumi.Input<string>;
|
|
530
527
|
/**
|
|
531
528
|
* ID of the networks in which the container is.
|
|
532
529
|
*
|
|
533
530
|
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
534
531
|
*/
|
|
535
|
-
|
|
532
|
+
networks?: pulumi.Input<pulumi.Input<string>[]>;
|
|
536
533
|
/**
|
|
537
534
|
* The networks the container is attached to
|
|
538
535
|
*/
|
|
539
|
-
|
|
536
|
+
networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
|
|
540
537
|
/**
|
|
541
538
|
* he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
542
539
|
*/
|
|
543
|
-
|
|
540
|
+
pidMode?: pulumi.Input<string>;
|
|
544
541
|
/**
|
|
545
542
|
* Publish a container's port(s) to the host.
|
|
546
543
|
*/
|
|
547
|
-
|
|
544
|
+
ports?: pulumi.Input<pulumi.Input<inputs.ContainerPort>[]>;
|
|
548
545
|
/**
|
|
549
546
|
* If `true`, the container runs in privileged mode.
|
|
550
547
|
*/
|
|
551
|
-
|
|
548
|
+
privileged?: pulumi.Input<boolean>;
|
|
552
549
|
/**
|
|
553
550
|
* Publish all ports of the container.
|
|
554
551
|
*/
|
|
555
|
-
|
|
552
|
+
publishAllPorts?: pulumi.Input<boolean>;
|
|
556
553
|
/**
|
|
557
554
|
* If `true`, the container will be started as readonly. Defaults to `false`.
|
|
558
555
|
*/
|
|
559
|
-
|
|
556
|
+
readOnly?: pulumi.Input<boolean>;
|
|
560
557
|
/**
|
|
561
558
|
* If `true`, it will remove anonymous volumes associated with the container. Defaults to `true`.
|
|
562
559
|
*/
|
|
563
|
-
|
|
560
|
+
removeVolumes?: pulumi.Input<boolean>;
|
|
564
561
|
/**
|
|
565
562
|
* The restart policy for the container. Must be one of 'no', 'on-failure', 'always', 'unless-stopped'. Defaults to `no`.
|
|
566
563
|
*/
|
|
567
|
-
|
|
564
|
+
restart?: pulumi.Input<string>;
|
|
568
565
|
/**
|
|
569
566
|
* If `true`, then the container will be automatically removed after his execution. Terraform won't check this container
|
|
570
567
|
* after creation. Defaults to `false`.
|
|
571
568
|
*/
|
|
572
|
-
|
|
569
|
+
rm?: pulumi.Input<boolean>;
|
|
573
570
|
/**
|
|
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.
|
|
571
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
576
572
|
*/
|
|
577
|
-
|
|
573
|
+
securityOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
578
574
|
/**
|
|
579
575
|
* Size of `/dev/shm` in MBs.
|
|
580
576
|
*/
|
|
581
|
-
|
|
577
|
+
shmSize?: pulumi.Input<number>;
|
|
582
578
|
/**
|
|
583
|
-
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
584
|
-
* Defaults to `true`.
|
|
579
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created. Defaults to `true`.
|
|
585
580
|
*/
|
|
586
|
-
|
|
581
|
+
start?: pulumi.Input<boolean>;
|
|
587
582
|
/**
|
|
588
583
|
* If `true`, keep STDIN open even if not attached (`docker run -i`). Defaults to `false`.
|
|
589
584
|
*/
|
|
590
|
-
|
|
585
|
+
stdinOpen?: pulumi.Input<boolean>;
|
|
591
586
|
/**
|
|
592
587
|
* Key/value pairs for the storage driver options, e.g. `size`: `120G`
|
|
593
588
|
*/
|
|
594
|
-
|
|
589
|
+
storageOpts?: pulumi.Input<{
|
|
595
590
|
[key: string]: any;
|
|
596
591
|
}>;
|
|
597
592
|
/**
|
|
598
593
|
* A map of kernel parameters (sysctls) to set in the container.
|
|
599
594
|
*/
|
|
600
|
-
|
|
595
|
+
sysctls?: pulumi.Input<{
|
|
601
596
|
[key: string]: any;
|
|
602
597
|
}>;
|
|
603
598
|
/**
|
|
604
599
|
* A map of container directories which should be replaced by `tmpfs mounts`, and their corresponding mount options.
|
|
605
600
|
*/
|
|
606
|
-
|
|
601
|
+
tmpfs?: pulumi.Input<{
|
|
607
602
|
[key: string]: any;
|
|
608
603
|
}>;
|
|
609
604
|
/**
|
|
610
605
|
* If `true`, allocate a pseudo-tty (`docker run -t`). Defaults to `false`.
|
|
611
606
|
*/
|
|
612
|
-
|
|
607
|
+
tty?: pulumi.Input<boolean>;
|
|
613
608
|
/**
|
|
614
609
|
* Ulimit options to add.
|
|
615
610
|
*/
|
|
616
|
-
|
|
611
|
+
ulimits?: pulumi.Input<pulumi.Input<inputs.ContainerUlimit>[]>;
|
|
617
612
|
/**
|
|
618
|
-
* Specifies files to upload to the container before starting it. Only one of `content` or `
|
|
619
|
-
* at least one of them has to be set.
|
|
613
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `contentBase64` can be set and at least one of them has to be set.
|
|
620
614
|
*/
|
|
621
|
-
|
|
615
|
+
uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
|
|
622
616
|
/**
|
|
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.
|
|
617
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
625
618
|
*/
|
|
626
|
-
|
|
619
|
+
user?: pulumi.Input<string>;
|
|
627
620
|
/**
|
|
628
621
|
* Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
629
622
|
*/
|
|
630
|
-
|
|
623
|
+
usernsMode?: pulumi.Input<string>;
|
|
631
624
|
/**
|
|
632
625
|
* Spec for mounting volumes in the container.
|
|
633
626
|
*/
|
|
634
|
-
|
|
627
|
+
volumes?: pulumi.Input<pulumi.Input<inputs.ContainerVolume>[]>;
|
|
635
628
|
/**
|
|
636
629
|
* The working directory for commands to run in.
|
|
637
630
|
*/
|
|
638
|
-
|
|
631
|
+
workingDir?: pulumi.Input<string>;
|
|
639
632
|
}
|
|
640
633
|
/**
|
|
641
634
|
* The set of arguments for constructing a Container resource.
|
|
@@ -644,257 +637,246 @@ export interface ContainerArgs {
|
|
|
644
637
|
/**
|
|
645
638
|
* If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
646
639
|
*/
|
|
647
|
-
|
|
640
|
+
attach?: pulumi.Input<boolean>;
|
|
648
641
|
/**
|
|
649
642
|
* Add or drop certrain linux capabilities.
|
|
650
643
|
*/
|
|
651
|
-
|
|
644
|
+
capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
|
|
652
645
|
/**
|
|
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"]`.
|
|
646
|
+
* 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","-","baz.con"]`.
|
|
655
647
|
*/
|
|
656
|
-
|
|
648
|
+
command?: pulumi.Input<pulumi.Input<string>[]>;
|
|
657
649
|
/**
|
|
658
650
|
* A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
659
651
|
*/
|
|
660
|
-
|
|
652
|
+
cpuSet?: pulumi.Input<string>;
|
|
661
653
|
/**
|
|
662
654
|
* CPU shares (relative weight) for the container.
|
|
663
655
|
*/
|
|
664
|
-
|
|
656
|
+
cpuShares?: pulumi.Input<number>;
|
|
665
657
|
/**
|
|
666
|
-
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on
|
|
667
|
-
* successful stop.
|
|
658
|
+
* If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
668
659
|
*/
|
|
669
|
-
|
|
660
|
+
destroyGraceSeconds?: pulumi.Input<number>;
|
|
670
661
|
/**
|
|
671
662
|
* Bind devices to the container.
|
|
672
663
|
*/
|
|
673
|
-
|
|
664
|
+
devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
|
|
674
665
|
/**
|
|
675
666
|
* DNS servers to use.
|
|
676
667
|
*/
|
|
677
|
-
|
|
668
|
+
dns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
678
669
|
/**
|
|
679
670
|
* DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
680
671
|
*/
|
|
681
|
-
|
|
672
|
+
dnsOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
682
673
|
/**
|
|
683
674
|
* DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
684
675
|
*/
|
|
685
|
-
|
|
676
|
+
dnsSearches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
686
677
|
/**
|
|
687
678
|
* Domain name of the container.
|
|
688
679
|
*/
|
|
689
|
-
|
|
680
|
+
domainname?: pulumi.Input<string>;
|
|
690
681
|
/**
|
|
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"]`.
|
|
682
|
+
* 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"]`.
|
|
694
683
|
*/
|
|
695
|
-
|
|
684
|
+
entrypoints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
696
685
|
/**
|
|
697
686
|
* Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
698
687
|
*/
|
|
699
|
-
|
|
688
|
+
envs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
700
689
|
/**
|
|
701
690
|
* Additional groups for the container user
|
|
702
691
|
*/
|
|
703
|
-
|
|
692
|
+
groupAdds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
704
693
|
/**
|
|
705
694
|
* A test to perform to check that the container is healthy
|
|
706
695
|
*/
|
|
707
|
-
|
|
696
|
+
healthcheck?: pulumi.Input<inputs.ContainerHealthcheck>;
|
|
708
697
|
/**
|
|
709
698
|
* Hostname of the container.
|
|
710
699
|
*/
|
|
711
|
-
|
|
700
|
+
hostname?: pulumi.Input<string>;
|
|
712
701
|
/**
|
|
713
702
|
* Additional hosts to add to the container.
|
|
714
703
|
*/
|
|
715
|
-
|
|
704
|
+
hosts?: pulumi.Input<pulumi.Input<inputs.ContainerHost>[]>;
|
|
716
705
|
/**
|
|
717
|
-
* The ID of the image to back this container. The easiest way to get this value is to use the `
|
|
718
|
-
* is shown in the example.
|
|
706
|
+
* 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.
|
|
719
707
|
*/
|
|
720
|
-
|
|
708
|
+
image: pulumi.Input<string>;
|
|
721
709
|
/**
|
|
722
|
-
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd`
|
|
723
|
-
* defaults.
|
|
710
|
+
* Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
724
711
|
*/
|
|
725
|
-
|
|
712
|
+
init?: pulumi.Input<boolean>;
|
|
726
713
|
/**
|
|
727
|
-
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or
|
|
728
|
-
* `host`.
|
|
714
|
+
* IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
729
715
|
*/
|
|
730
|
-
|
|
716
|
+
ipcMode?: pulumi.Input<string>;
|
|
731
717
|
/**
|
|
732
718
|
* User-defined key/value metadata
|
|
733
719
|
*/
|
|
734
|
-
|
|
720
|
+
labels?: pulumi.Input<pulumi.Input<inputs.ContainerLabel>[]>;
|
|
735
721
|
/**
|
|
736
722
|
* Set of links for link based connectivity between containers that are running on the same host.
|
|
737
723
|
*
|
|
738
724
|
* @deprecated The --link flag is a legacy feature of Docker. It may eventually be removed.
|
|
739
725
|
*/
|
|
740
|
-
|
|
726
|
+
links?: pulumi.Input<pulumi.Input<string>[]>;
|
|
741
727
|
/**
|
|
742
728
|
* The logging driver to use for the container. Defaults to `json-file`.
|
|
743
729
|
*/
|
|
744
|
-
|
|
730
|
+
logDriver?: pulumi.Input<string>;
|
|
745
731
|
/**
|
|
746
732
|
* Key/value pairs to use as options for the logging driver.
|
|
747
733
|
*/
|
|
748
|
-
|
|
734
|
+
logOpts?: pulumi.Input<{
|
|
749
735
|
[key: string]: any;
|
|
750
736
|
}>;
|
|
751
737
|
/**
|
|
752
738
|
* Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
753
739
|
*/
|
|
754
|
-
|
|
740
|
+
logs?: pulumi.Input<boolean>;
|
|
755
741
|
/**
|
|
756
742
|
* The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
757
743
|
*/
|
|
758
|
-
|
|
744
|
+
maxRetryCount?: pulumi.Input<number>;
|
|
759
745
|
/**
|
|
760
746
|
* The memory limit for the container in MBs.
|
|
761
747
|
*/
|
|
762
|
-
|
|
748
|
+
memory?: pulumi.Input<number>;
|
|
763
749
|
/**
|
|
764
750
|
* The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `terraform
|
|
765
751
|
* apply` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
766
752
|
*/
|
|
767
|
-
|
|
753
|
+
memorySwap?: pulumi.Input<number>;
|
|
768
754
|
/**
|
|
769
755
|
* Specification for mounts to be added to containers created as part of the service.
|
|
770
756
|
*/
|
|
771
|
-
|
|
757
|
+
mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
|
|
772
758
|
/**
|
|
773
759
|
* If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform
|
|
774
760
|
* assumes it is successful. Defaults to `true`.
|
|
775
761
|
*/
|
|
776
|
-
|
|
762
|
+
mustRun?: pulumi.Input<boolean>;
|
|
777
763
|
/**
|
|
778
764
|
* The name of the container.
|
|
779
765
|
*/
|
|
780
|
-
|
|
766
|
+
name?: pulumi.Input<string>;
|
|
781
767
|
/**
|
|
782
768
|
* Set an alias for the container in all specified networks
|
|
783
769
|
*
|
|
784
770
|
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
785
771
|
*/
|
|
786
|
-
|
|
772
|
+
networkAliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
787
773
|
/**
|
|
788
774
|
* Network mode of the container.
|
|
789
775
|
*/
|
|
790
|
-
|
|
776
|
+
networkMode?: pulumi.Input<string>;
|
|
791
777
|
/**
|
|
792
778
|
* ID of the networks in which the container is.
|
|
793
779
|
*
|
|
794
780
|
* @deprecated Use networks_advanced instead. Will be removed in v3.0.0
|
|
795
781
|
*/
|
|
796
|
-
|
|
782
|
+
networks?: pulumi.Input<pulumi.Input<string>[]>;
|
|
797
783
|
/**
|
|
798
784
|
* The networks the container is attached to
|
|
799
785
|
*/
|
|
800
|
-
|
|
786
|
+
networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
|
|
801
787
|
/**
|
|
802
788
|
* he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
803
789
|
*/
|
|
804
|
-
|
|
790
|
+
pidMode?: pulumi.Input<string>;
|
|
805
791
|
/**
|
|
806
792
|
* Publish a container's port(s) to the host.
|
|
807
793
|
*/
|
|
808
|
-
|
|
794
|
+
ports?: pulumi.Input<pulumi.Input<inputs.ContainerPort>[]>;
|
|
809
795
|
/**
|
|
810
796
|
* If `true`, the container runs in privileged mode.
|
|
811
797
|
*/
|
|
812
|
-
|
|
798
|
+
privileged?: pulumi.Input<boolean>;
|
|
813
799
|
/**
|
|
814
800
|
* Publish all ports of the container.
|
|
815
801
|
*/
|
|
816
|
-
|
|
802
|
+
publishAllPorts?: pulumi.Input<boolean>;
|
|
817
803
|
/**
|
|
818
804
|
* If `true`, the container will be started as readonly. Defaults to `false`.
|
|
819
805
|
*/
|
|
820
|
-
|
|
806
|
+
readOnly?: pulumi.Input<boolean>;
|
|
821
807
|
/**
|
|
822
808
|
* If `true`, it will remove anonymous volumes associated with the container. Defaults to `true`.
|
|
823
809
|
*/
|
|
824
|
-
|
|
810
|
+
removeVolumes?: pulumi.Input<boolean>;
|
|
825
811
|
/**
|
|
826
812
|
* The restart policy for the container. Must be one of 'no', 'on-failure', 'always', 'unless-stopped'. Defaults to `no`.
|
|
827
813
|
*/
|
|
828
|
-
|
|
814
|
+
restart?: pulumi.Input<string>;
|
|
829
815
|
/**
|
|
830
816
|
* If `true`, then the container will be automatically removed after his execution. Terraform won't check this container
|
|
831
817
|
* after creation. Defaults to `false`.
|
|
832
818
|
*/
|
|
833
|
-
|
|
819
|
+
rm?: pulumi.Input<boolean>;
|
|
834
820
|
/**
|
|
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.
|
|
821
|
+
* List of string values to customize labels for MLS systems, such as SELinux. See https://docs.docker.com/engine/reference/run/#security-configuration.
|
|
837
822
|
*/
|
|
838
|
-
|
|
823
|
+
securityOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
839
824
|
/**
|
|
840
825
|
* Size of `/dev/shm` in MBs.
|
|
841
826
|
*/
|
|
842
|
-
|
|
827
|
+
shmSize?: pulumi.Input<number>;
|
|
843
828
|
/**
|
|
844
|
-
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created.
|
|
845
|
-
* Defaults to `true`.
|
|
829
|
+
* If `true`, then the Docker container will be started after creation. If `false`, then the container is only created. Defaults to `true`.
|
|
846
830
|
*/
|
|
847
|
-
|
|
831
|
+
start?: pulumi.Input<boolean>;
|
|
848
832
|
/**
|
|
849
833
|
* If `true`, keep STDIN open even if not attached (`docker run -i`). Defaults to `false`.
|
|
850
834
|
*/
|
|
851
|
-
|
|
835
|
+
stdinOpen?: pulumi.Input<boolean>;
|
|
852
836
|
/**
|
|
853
837
|
* Key/value pairs for the storage driver options, e.g. `size`: `120G`
|
|
854
838
|
*/
|
|
855
|
-
|
|
839
|
+
storageOpts?: pulumi.Input<{
|
|
856
840
|
[key: string]: any;
|
|
857
841
|
}>;
|
|
858
842
|
/**
|
|
859
843
|
* A map of kernel parameters (sysctls) to set in the container.
|
|
860
844
|
*/
|
|
861
|
-
|
|
845
|
+
sysctls?: pulumi.Input<{
|
|
862
846
|
[key: string]: any;
|
|
863
847
|
}>;
|
|
864
848
|
/**
|
|
865
849
|
* A map of container directories which should be replaced by `tmpfs mounts`, and their corresponding mount options.
|
|
866
850
|
*/
|
|
867
|
-
|
|
851
|
+
tmpfs?: pulumi.Input<{
|
|
868
852
|
[key: string]: any;
|
|
869
853
|
}>;
|
|
870
854
|
/**
|
|
871
855
|
* If `true`, allocate a pseudo-tty (`docker run -t`). Defaults to `false`.
|
|
872
856
|
*/
|
|
873
|
-
|
|
857
|
+
tty?: pulumi.Input<boolean>;
|
|
874
858
|
/**
|
|
875
859
|
* Ulimit options to add.
|
|
876
860
|
*/
|
|
877
|
-
|
|
861
|
+
ulimits?: pulumi.Input<pulumi.Input<inputs.ContainerUlimit>[]>;
|
|
878
862
|
/**
|
|
879
|
-
* Specifies files to upload to the container before starting it. Only one of `content` or `
|
|
880
|
-
* at least one of them has to be set.
|
|
863
|
+
* Specifies files to upload to the container before starting it. Only one of `content` or `contentBase64` can be set and at least one of them has to be set.
|
|
881
864
|
*/
|
|
882
|
-
|
|
865
|
+
uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
|
|
883
866
|
/**
|
|
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.
|
|
867
|
+
* User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
886
868
|
*/
|
|
887
|
-
|
|
869
|
+
user?: pulumi.Input<string>;
|
|
888
870
|
/**
|
|
889
871
|
* Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
890
872
|
*/
|
|
891
|
-
|
|
873
|
+
usernsMode?: pulumi.Input<string>;
|
|
892
874
|
/**
|
|
893
875
|
* Spec for mounting volumes in the container.
|
|
894
876
|
*/
|
|
895
|
-
|
|
877
|
+
volumes?: pulumi.Input<pulumi.Input<inputs.ContainerVolume>[]>;
|
|
896
878
|
/**
|
|
897
879
|
* The working directory for commands to run in.
|
|
898
880
|
*/
|
|
899
|
-
|
|
881
|
+
workingDir?: pulumi.Input<string>;
|
|
900
882
|
}
|