@pulumi/docker 4.12.0-alpha.1776752070 → 5.0.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.
@@ -2,7 +2,24 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
+ * <!-- Bug: Type and Name are switched -->
5
6
  * Manages a Docker Buildx builder instance. This resource allows you to create a buildx builder with various configurations such as driver, nodes, and platform settings. Please see https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md for more documentation
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as docker from "@pulumi/docker";
13
+ *
14
+ * const example = new docker.BuildxBuilder("example", {
15
+ * name: "example-builder",
16
+ * driver: "docker-container",
17
+ * use: true,
18
+ * dockerContainer: {
19
+ * image: "moby/buildkit:latest",
20
+ * },
21
+ * });
22
+ * ```
6
23
  */
7
24
  export declare class BuildxBuilder extends pulumi.CustomResource {
8
25
  /**
package/buildxBuilder.js CHANGED
@@ -6,7 +6,24 @@ exports.BuildxBuilder = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * <!-- Bug: Type and Name are switched -->
9
10
  * Manages a Docker Buildx builder instance. This resource allows you to create a buildx builder with various configurations such as driver, nodes, and platform settings. Please see https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md for more documentation
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as docker from "@pulumi/docker";
17
+ *
18
+ * const example = new docker.BuildxBuilder("example", {
19
+ * name: "example-builder",
20
+ * driver: "docker-container",
21
+ * use: true,
22
+ * dockerContainer: {
23
+ * image: "moby/buildkit:latest",
24
+ * },
25
+ * });
26
+ * ```
10
27
  */
11
28
  class BuildxBuilder extends pulumi.CustomResource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AI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;SACrC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAnIL,sCAoIC;AAtHG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
package/container.d.ts CHANGED
@@ -88,7 +88,7 @@ export declare class Container extends pulumi.CustomResource {
88
88
  */
89
89
  readonly bridge: pulumi.Output<string>;
90
90
  /**
91
- * Add or drop certrain linux capabilities.
91
+ * Add or drop certain linux capabilities.
92
92
  */
93
93
  readonly capabilities: pulumi.Output<outputs.ContainerCapabilities | undefined>;
94
94
  /**
@@ -136,7 +136,27 @@ export declare class Container extends pulumi.CustomResource {
136
136
  */
137
137
  readonly destroyGraceSeconds: pulumi.Output<number | undefined>;
138
138
  /**
139
- * Bind devices to the container.
139
+ * Limit read rate (bytes per second) from a device. This is the equivalent to repeating `--device-read-bps` for `docker run`.
140
+ */
141
+ readonly deviceReadBps: pulumi.Output<outputs.ContainerDeviceReadBp[] | undefined>;
142
+ /**
143
+ * Limit read rate (IO per second) from a device. This is the equivalent to repeating `--device-read-iops` for `docker run`.
144
+ */
145
+ readonly deviceReadIops: pulumi.Output<outputs.ContainerDeviceReadIop[] | undefined>;
146
+ /**
147
+ * Device requests for the container, such as CDI devices (e.g., `nvidia.com/gpu=all`) or GPU requests. This is the equivalent to using the `--device` flag for CDI devices in `docker run`.
148
+ */
149
+ readonly deviceRequests: pulumi.Output<outputs.ContainerDeviceRequest[] | undefined>;
150
+ /**
151
+ * Limit write rate (bytes per second) to a device. This is the equivalent to repeating `--device-write-bps` for `docker run`.
152
+ */
153
+ readonly deviceWriteBps: pulumi.Output<outputs.ContainerDeviceWriteBp[] | undefined>;
154
+ /**
155
+ * Limit write rate (IO per second) to a device. This is the equivalent to repeating `--device-write-iops` for `docker run`.
156
+ */
157
+ readonly deviceWriteIops: pulumi.Output<outputs.ContainerDeviceWriteIop[] | undefined>;
158
+ /**
159
+ * Bind traditional devices to the container (e.g., `/dev/nvidia0`). For CDI devices, use `deviceRequests` instead.
140
160
  */
141
161
  readonly devices: pulumi.Output<outputs.ContainerDevice[] | undefined>;
142
162
  /**
@@ -168,7 +188,7 @@ export declare class Container extends pulumi.CustomResource {
168
188
  */
169
189
  readonly exitCode: pulumi.Output<number>;
170
190
  /**
171
- * GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
191
+ * GPU devices to add to the container. Supported values are `all` or `device=<id[,id...]>`, for example `device=0,2` or `device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a`.
172
192
  */
173
193
  readonly gpus: pulumi.Output<string | undefined>;
174
194
  /**
@@ -238,7 +258,7 @@ export declare class Container extends pulumi.CustomResource {
238
258
  */
239
259
  readonly mounts: pulumi.Output<outputs.ContainerMount[] | undefined>;
240
260
  /**
241
- * If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`.
261
+ * If `true`, then the Docker container will be kept running. If `false`, Terraform leaves the container alone. This attribute is also used to trigger a restart of a stopped container. If your container is stopped, Terraform will set `mustRun` to `false` and this will trigger a change. Defaults to `true`.
242
262
  */
243
263
  readonly mustRun: pulumi.Output<boolean | undefined>;
244
264
  /**
@@ -254,13 +274,17 @@ export declare class Container extends pulumi.CustomResource {
254
274
  */
255
275
  readonly networkMode: pulumi.Output<string | undefined>;
256
276
  /**
257
- * The networks the container is attached to
277
+ * The networks the container is attached to. This is the equivalent to the `--network` option of `docker run`
258
278
  */
259
279
  readonly networksAdvanced: pulumi.Output<outputs.ContainerNetworksAdvanced[] | undefined>;
260
280
  /**
261
- * he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
281
+ * The PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
262
282
  */
263
283
  readonly pidMode: pulumi.Output<string | undefined>;
284
+ /**
285
+ * Platform in the format `os[/arch[/variant]]` used for image lookup and container runtime, for example `linux/amd64`.
286
+ */
287
+ readonly platform: pulumi.Output<string>;
264
288
  /**
265
289
  * Publish a container's port(s) to the host.
266
290
  */
@@ -348,7 +372,7 @@ export declare class Container extends pulumi.CustomResource {
348
372
  */
349
373
  readonly uploads: pulumi.Output<outputs.ContainerUpload[] | undefined>;
350
374
  /**
351
- * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
375
+ * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literally or by name.
352
376
  */
353
377
  readonly user: pulumi.Output<string | undefined>;
354
378
  /**
@@ -393,7 +417,7 @@ export interface ContainerState {
393
417
  */
394
418
  bridge?: pulumi.Input<string>;
395
419
  /**
396
- * Add or drop certrain linux capabilities.
420
+ * Add or drop certain linux capabilities.
397
421
  */
398
422
  capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
399
423
  /**
@@ -441,7 +465,27 @@ export interface ContainerState {
441
465
  */
442
466
  destroyGraceSeconds?: pulumi.Input<number>;
443
467
  /**
444
- * Bind devices to the container.
468
+ * Limit read rate (bytes per second) from a device. This is the equivalent to repeating `--device-read-bps` for `docker run`.
469
+ */
470
+ deviceReadBps?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceReadBp>[]>;
471
+ /**
472
+ * Limit read rate (IO per second) from a device. This is the equivalent to repeating `--device-read-iops` for `docker run`.
473
+ */
474
+ deviceReadIops?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceReadIop>[]>;
475
+ /**
476
+ * Device requests for the container, such as CDI devices (e.g., `nvidia.com/gpu=all`) or GPU requests. This is the equivalent to using the `--device` flag for CDI devices in `docker run`.
477
+ */
478
+ deviceRequests?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceRequest>[]>;
479
+ /**
480
+ * Limit write rate (bytes per second) to a device. This is the equivalent to repeating `--device-write-bps` for `docker run`.
481
+ */
482
+ deviceWriteBps?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceWriteBp>[]>;
483
+ /**
484
+ * Limit write rate (IO per second) to a device. This is the equivalent to repeating `--device-write-iops` for `docker run`.
485
+ */
486
+ deviceWriteIops?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceWriteIop>[]>;
487
+ /**
488
+ * Bind traditional devices to the container (e.g., `/dev/nvidia0`). For CDI devices, use `deviceRequests` instead.
445
489
  */
446
490
  devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
447
491
  /**
@@ -473,7 +517,7 @@ export interface ContainerState {
473
517
  */
474
518
  exitCode?: pulumi.Input<number>;
475
519
  /**
476
- * GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
520
+ * GPU devices to add to the container. Supported values are `all` or `device=<id[,id...]>`, for example `device=0,2` or `device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a`.
477
521
  */
478
522
  gpus?: pulumi.Input<string>;
479
523
  /**
@@ -543,7 +587,7 @@ export interface ContainerState {
543
587
  */
544
588
  mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
545
589
  /**
546
- * If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`.
590
+ * If `true`, then the Docker container will be kept running. If `false`, Terraform leaves the container alone. This attribute is also used to trigger a restart of a stopped container. If your container is stopped, Terraform will set `mustRun` to `false` and this will trigger a change. Defaults to `true`.
547
591
  */
548
592
  mustRun?: pulumi.Input<boolean>;
549
593
  /**
@@ -559,13 +603,17 @@ export interface ContainerState {
559
603
  */
560
604
  networkMode?: pulumi.Input<string>;
561
605
  /**
562
- * The networks the container is attached to
606
+ * The networks the container is attached to. This is the equivalent to the `--network` option of `docker run`
563
607
  */
564
608
  networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
565
609
  /**
566
- * he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
610
+ * The PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
567
611
  */
568
612
  pidMode?: pulumi.Input<string>;
613
+ /**
614
+ * Platform in the format `os[/arch[/variant]]` used for image lookup and container runtime, for example `linux/amd64`.
615
+ */
616
+ platform?: pulumi.Input<string>;
569
617
  /**
570
618
  * Publish a container's port(s) to the host.
571
619
  */
@@ -653,7 +701,7 @@ export interface ContainerState {
653
701
  */
654
702
  uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
655
703
  /**
656
- * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
704
+ * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literally or by name.
657
705
  */
658
706
  user?: pulumi.Input<string>;
659
707
  /**
@@ -686,7 +734,7 @@ export interface ContainerArgs {
686
734
  */
687
735
  attach?: pulumi.Input<boolean>;
688
736
  /**
689
- * Add or drop certrain linux capabilities.
737
+ * Add or drop certain linux capabilities.
690
738
  */
691
739
  capabilities?: pulumi.Input<inputs.ContainerCapabilities>;
692
740
  /**
@@ -730,7 +778,27 @@ export interface ContainerArgs {
730
778
  */
731
779
  destroyGraceSeconds?: pulumi.Input<number>;
732
780
  /**
733
- * Bind devices to the container.
781
+ * Limit read rate (bytes per second) from a device. This is the equivalent to repeating `--device-read-bps` for `docker run`.
782
+ */
783
+ deviceReadBps?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceReadBp>[]>;
784
+ /**
785
+ * Limit read rate (IO per second) from a device. This is the equivalent to repeating `--device-read-iops` for `docker run`.
786
+ */
787
+ deviceReadIops?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceReadIop>[]>;
788
+ /**
789
+ * Device requests for the container, such as CDI devices (e.g., `nvidia.com/gpu=all`) or GPU requests. This is the equivalent to using the `--device` flag for CDI devices in `docker run`.
790
+ */
791
+ deviceRequests?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceRequest>[]>;
792
+ /**
793
+ * Limit write rate (bytes per second) to a device. This is the equivalent to repeating `--device-write-bps` for `docker run`.
794
+ */
795
+ deviceWriteBps?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceWriteBp>[]>;
796
+ /**
797
+ * Limit write rate (IO per second) to a device. This is the equivalent to repeating `--device-write-iops` for `docker run`.
798
+ */
799
+ deviceWriteIops?: pulumi.Input<pulumi.Input<inputs.ContainerDeviceWriteIop>[]>;
800
+ /**
801
+ * Bind traditional devices to the container (e.g., `/dev/nvidia0`). For CDI devices, use `deviceRequests` instead.
734
802
  */
735
803
  devices?: pulumi.Input<pulumi.Input<inputs.ContainerDevice>[]>;
736
804
  /**
@@ -758,7 +826,7 @@ export interface ContainerArgs {
758
826
  */
759
827
  envs?: pulumi.Input<pulumi.Input<string>[]>;
760
828
  /**
761
- * GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
829
+ * GPU devices to add to the container. Supported values are `all` or `device=<id[,id...]>`, for example `device=0,2` or `device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a`.
762
830
  */
763
831
  gpus?: pulumi.Input<string>;
764
832
  /**
@@ -828,7 +896,7 @@ export interface ContainerArgs {
828
896
  */
829
897
  mounts?: pulumi.Input<pulumi.Input<inputs.ContainerMount>[]>;
830
898
  /**
831
- * If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`.
899
+ * If `true`, then the Docker container will be kept running. If `false`, Terraform leaves the container alone. This attribute is also used to trigger a restart of a stopped container. If your container is stopped, Terraform will set `mustRun` to `false` and this will trigger a change. Defaults to `true`.
832
900
  */
833
901
  mustRun?: pulumi.Input<boolean>;
834
902
  /**
@@ -840,13 +908,17 @@ export interface ContainerArgs {
840
908
  */
841
909
  networkMode?: pulumi.Input<string>;
842
910
  /**
843
- * The networks the container is attached to
911
+ * The networks the container is attached to. This is the equivalent to the `--network` option of `docker run`
844
912
  */
845
913
  networksAdvanced?: pulumi.Input<pulumi.Input<inputs.ContainerNetworksAdvanced>[]>;
846
914
  /**
847
- * he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
915
+ * The PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
848
916
  */
849
917
  pidMode?: pulumi.Input<string>;
918
+ /**
919
+ * Platform in the format `os[/arch[/variant]]` used for image lookup and container runtime, for example `linux/amd64`.
920
+ */
921
+ platform?: pulumi.Input<string>;
850
922
  /**
851
923
  * Publish a container's port(s) to the host.
852
924
  */
@@ -934,7 +1006,7 @@ export interface ContainerArgs {
934
1006
  */
935
1007
  uploads?: pulumi.Input<pulumi.Input<inputs.ContainerUpload>[]>;
936
1008
  /**
937
- * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
1009
+ * User used for run the first process. Format is `user` or `user:group` which user and group can be passed literally or by name.
938
1010
  */
939
1011
  user?: pulumi.Input<string>;
940
1012
  /**
package/container.js CHANGED
@@ -109,6 +109,11 @@ class Container extends pulumi.CustomResource {
109
109
  resourceInputs["cpuShares"] = state?.cpuShares;
110
110
  resourceInputs["cpus"] = state?.cpus;
111
111
  resourceInputs["destroyGraceSeconds"] = state?.destroyGraceSeconds;
112
+ resourceInputs["deviceReadBps"] = state?.deviceReadBps;
113
+ resourceInputs["deviceReadIops"] = state?.deviceReadIops;
114
+ resourceInputs["deviceRequests"] = state?.deviceRequests;
115
+ resourceInputs["deviceWriteBps"] = state?.deviceWriteBps;
116
+ resourceInputs["deviceWriteIops"] = state?.deviceWriteIops;
112
117
  resourceInputs["devices"] = state?.devices;
113
118
  resourceInputs["dns"] = state?.dns;
114
119
  resourceInputs["dnsOpts"] = state?.dnsOpts;
@@ -140,6 +145,7 @@ class Container extends pulumi.CustomResource {
140
145
  resourceInputs["networkMode"] = state?.networkMode;
141
146
  resourceInputs["networksAdvanced"] = state?.networksAdvanced;
142
147
  resourceInputs["pidMode"] = state?.pidMode;
148
+ resourceInputs["platform"] = state?.platform;
143
149
  resourceInputs["ports"] = state?.ports;
144
150
  resourceInputs["privileged"] = state?.privileged;
145
151
  resourceInputs["publishAllPorts"] = state?.publishAllPorts;
@@ -184,6 +190,11 @@ class Container extends pulumi.CustomResource {
184
190
  resourceInputs["cpuShares"] = args?.cpuShares;
185
191
  resourceInputs["cpus"] = args?.cpus;
186
192
  resourceInputs["destroyGraceSeconds"] = args?.destroyGraceSeconds;
193
+ resourceInputs["deviceReadBps"] = args?.deviceReadBps;
194
+ resourceInputs["deviceReadIops"] = args?.deviceReadIops;
195
+ resourceInputs["deviceRequests"] = args?.deviceRequests;
196
+ resourceInputs["deviceWriteBps"] = args?.deviceWriteBps;
197
+ resourceInputs["deviceWriteIops"] = args?.deviceWriteIops;
187
198
  resourceInputs["devices"] = args?.devices;
188
199
  resourceInputs["dns"] = args?.dns;
189
200
  resourceInputs["dnsOpts"] = args?.dnsOpts;
@@ -213,6 +224,7 @@ class Container extends pulumi.CustomResource {
213
224
  resourceInputs["networkMode"] = args?.networkMode;
214
225
  resourceInputs["networksAdvanced"] = args?.networksAdvanced;
215
226
  resourceInputs["pidMode"] = args?.pidMode;
227
+ resourceInputs["platform"] = args?.platform;
216
228
  resourceInputs["ports"] = args?.ports;
217
229
  resourceInputs["privileged"] = args?.privileged;
218
230
  resourceInputs["publishAllPorts"] = args?.publishAllPorts;
package/container.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../container.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuSD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC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30
  export interface GetNetworkResult {
31
+ /**
32
+ * Containers attached to the network.
33
+ */
34
+ readonly containers: outputs.GetNetworkContainer[];
31
35
  /**
32
36
  * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
33
37
  */
package/getNetwork.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getNetwork.js","sourceRoot":"","sources":["../getNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AA6CD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC"}
1
+ {"version":3,"file":"getNetwork.js","sourceRoot":"","sources":["../getNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AAiDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC"}
package/network.d.ts CHANGED
@@ -70,12 +70,6 @@ export declare class Network extends pulumi.CustomResource {
70
70
  * Enable manual container attachment to the network.
71
71
  */
72
72
  readonly attachable: pulumi.Output<boolean | undefined>;
73
- /**
74
- * Requests daemon to check for networks with same name.
75
- *
76
- * @deprecated This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.
77
- */
78
- readonly checkDuplicate: pulumi.Output<boolean | undefined>;
79
73
  /**
80
74
  * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
81
75
  */
@@ -141,12 +135,6 @@ export interface NetworkState {
141
135
  * Enable manual container attachment to the network.
142
136
  */
143
137
  attachable?: pulumi.Input<boolean>;
144
- /**
145
- * Requests daemon to check for networks with same name.
146
- *
147
- * @deprecated This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.
148
- */
149
- checkDuplicate?: pulumi.Input<boolean>;
150
138
  /**
151
139
  * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
152
140
  */
@@ -204,12 +192,6 @@ export interface NetworkArgs {
204
192
  * Enable manual container attachment to the network.
205
193
  */
206
194
  attachable?: pulumi.Input<boolean>;
207
- /**
208
- * Requests daemon to check for networks with same name.
209
- *
210
- * @deprecated This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.
211
- */
212
- checkDuplicate?: pulumi.Input<boolean>;
213
195
  /**
214
196
  * The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
215
197
  */
package/network.js CHANGED
@@ -83,7 +83,6 @@ class Network extends pulumi.CustomResource {
83
83
  if (opts.id) {
84
84
  const state = argsOrState;
85
85
  resourceInputs["attachable"] = state?.attachable;
86
- resourceInputs["checkDuplicate"] = state?.checkDuplicate;
87
86
  resourceInputs["driver"] = state?.driver;
88
87
  resourceInputs["ingress"] = state?.ingress;
89
88
  resourceInputs["internal"] = state?.internal;
@@ -99,7 +98,6 @@ class Network extends pulumi.CustomResource {
99
98
  else {
100
99
  const args = argsOrState;
101
100
  resourceInputs["attachable"] = args?.attachable;
102
- resourceInputs["checkDuplicate"] = args?.checkDuplicate;
103
101
  resourceInputs["driver"] = args?.driver;
104
102
  resourceInputs["ingress"] = args?.ingress;
105
103
  resourceInputs["internal"] = args?.internal;
package/network.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAA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,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAvHL,0BAwHC;AA1GG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/docker",
3
- "version": "4.12.0-alpha.1776752070",
3
+ "version": "5.0.0",
4
4
  "description": "A Pulumi package for interacting with Docker in Pulumi programs",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,6 +24,6 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "docker",
27
- "version": "4.12.0-alpha.1776752070"
27
+ "version": "5.0.0"
28
28
  }
29
29
  }
package/remoteImage.d.ts CHANGED
@@ -38,14 +38,15 @@ import * as outputs from "./types/output";
38
38
  * });
39
39
  * ```
40
40
  *
41
- * ### Build
41
+ * ## Build
42
42
  *
43
43
  * You can also use the resource to build an image. If you want to use a buildx builder with all of its features, please read the section below.
44
44
  *
45
45
  * > **Note**: The default timeout for the building is 20 minutes. If you need to increase this, you can use operation timeouts.
46
46
  *
47
47
  * In this case the image "zoo" and "zoo:develop" are built.
48
- * The `context` and `dockerfile` arguments are relative to the local Terraform process (`path.cwd`).
48
+ * The `context` path is resolved on the machine running Terraform (relative paths are relative to the current working directory, i.e. `path.cwd`).
49
+ * If `dockerfile` is not an absolute path, it is resolved relative to `context`.
49
50
  * There is no need to copy the files to remote hosts before creating the resource.
50
51
  *
51
52
  * ```typescript
package/remoteImage.js CHANGED
@@ -42,14 +42,15 @@ const utilities = require("./utilities");
42
42
  * });
43
43
  * ```
44
44
  *
45
- * ### Build
45
+ * ## Build
46
46
  *
47
47
  * You can also use the resource to build an image. If you want to use a buildx builder with all of its features, please read the section below.
48
48
  *
49
49
  * > **Note**: The default timeout for the building is 20 minutes. If you need to increase this, you can use operation timeouts.
50
50
  *
51
51
  * In this case the image "zoo" and "zoo:develop" are built.
52
- * The `context` and `dockerfile` arguments are relative to the local Terraform process (`path.cwd`).
52
+ * The `context` path is resolved on the machine running Terraform (relative paths are relative to the current working directory, i.e. `path.cwd`).
53
+ * If `dockerfile` is not an absolute path, it is resolved relative to `context`.
53
54
  * There is no need to copy the files to remote hosts before creating the resource.
54
55
  *
55
56
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cA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E,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxGL,kCAyGC;AA3FG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * <!-- Bug: Type and Name are switched -->
4
6
  * Manages the configs of a Docker service in a swarm.
@@ -74,6 +76,10 @@ export declare class ServiceConfig extends pulumi.CustomResource {
74
76
  * Base64-url-safe-encoded config data
75
77
  */
76
78
  readonly data: pulumi.Output<string>;
79
+ /**
80
+ * User-defined key/value metadata
81
+ */
82
+ readonly labels: pulumi.Output<outputs.ServiceConfigLabel[] | undefined>;
77
83
  /**
78
84
  * User-defined name of the config
79
85
  */
@@ -95,6 +101,10 @@ export interface ServiceConfigState {
95
101
  * Base64-url-safe-encoded config data
96
102
  */
97
103
  data?: pulumi.Input<string>;
104
+ /**
105
+ * User-defined key/value metadata
106
+ */
107
+ labels?: pulumi.Input<pulumi.Input<inputs.ServiceConfigLabel>[]>;
98
108
  /**
99
109
  * User-defined name of the config
100
110
  */
@@ -108,6 +118,10 @@ export interface ServiceConfigArgs {
108
118
  * Base64-url-safe-encoded config data
109
119
  */
110
120
  data: pulumi.Input<string>;
121
+ /**
122
+ * User-defined key/value metadata
123
+ */
124
+ labels?: pulumi.Input<pulumi.Input<inputs.ServiceConfigLabel>[]>;
111
125
  /**
112
126
  * User-defined name of the config
113
127
  */
package/serviceConfig.js CHANGED
@@ -89,6 +89,7 @@ class ServiceConfig extends pulumi.CustomResource {
89
89
  if (opts.id) {
90
90
  const state = argsOrState;
91
91
  resourceInputs["data"] = state?.data;
92
+ resourceInputs["labels"] = state?.labels;
92
93
  resourceInputs["name"] = state?.name;
93
94
  }
94
95
  else {
@@ -97,6 +98,7 @@ class ServiceConfig extends pulumi.CustomResource {
97
98
  throw new Error("Missing required property 'data'");
98
99
  }
99
100
  resourceInputs["data"] = args?.data;
101
+ resourceInputs["labels"] = args?.labels;
100
102
  resourceInputs["name"] = args?.name;
101
103
  }
102
104
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"serviceConfig.js","sourceRoot":"","sources":["../serviceConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAA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BD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AApEL,sCAqEC;AAvDG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
package/types/input.d.ts CHANGED
@@ -204,7 +204,7 @@ export interface ContainerCapabilities {
204
204
  }
205
205
  export interface ContainerDevice {
206
206
  /**
207
- * The path in the container where the device will be bound.
207
+ * The path in the container where the device will be bound. If not set, it defaults to the value of `hostPath`.
208
208
  */
209
209
  containerPath?: pulumi.Input<string>;
210
210
  /**
@@ -216,6 +216,70 @@ export interface ContainerDevice {
216
216
  */
217
217
  permissions?: pulumi.Input<string>;
218
218
  }
219
+ export interface ContainerDeviceReadBp {
220
+ /**
221
+ * The device path on the host, e.g. `/dev/sda`.
222
+ */
223
+ path: pulumi.Input<string>;
224
+ /**
225
+ * The read rate limit in bytes per second.
226
+ */
227
+ rate: pulumi.Input<number>;
228
+ }
229
+ export interface ContainerDeviceReadIop {
230
+ /**
231
+ * The device path on the host, e.g. `/dev/sda`.
232
+ */
233
+ path: pulumi.Input<string>;
234
+ /**
235
+ * The read IOPS limit.
236
+ */
237
+ rate: pulumi.Input<number>;
238
+ }
239
+ export interface ContainerDeviceRequest {
240
+ /**
241
+ * List of device capabilities. Only used with `nvidia` driver (e.g., `gpu`, `compute`, `utility`).
242
+ */
243
+ capabilities?: pulumi.Input<pulumi.Input<string>[]>;
244
+ /**
245
+ * Number of devices to request. Use -1 for all devices. Only used with `nvidia` driver.
246
+ */
247
+ count?: pulumi.Input<number>;
248
+ /**
249
+ * List of device IDs or CDI device identifiers (e.g., `nvidia.com/gpu=all`).
250
+ */
251
+ deviceIds?: pulumi.Input<pulumi.Input<string>[]>;
252
+ /**
253
+ * The device driver to use. Common values: `cdi` for CDI devices, `nvidia` for NVIDIA GPU requests.
254
+ */
255
+ driver?: pulumi.Input<string>;
256
+ /**
257
+ * Driver-specific options.
258
+ */
259
+ options?: pulumi.Input<{
260
+ [key: string]: pulumi.Input<string>;
261
+ }>;
262
+ }
263
+ export interface ContainerDeviceWriteBp {
264
+ /**
265
+ * The device path on the host, e.g. `/dev/sda`.
266
+ */
267
+ path: pulumi.Input<string>;
268
+ /**
269
+ * The write rate limit in bytes per second.
270
+ */
271
+ rate: pulumi.Input<number>;
272
+ }
273
+ export interface ContainerDeviceWriteIop {
274
+ /**
275
+ * The device path on the host, e.g. `/dev/sda`.
276
+ */
277
+ path: pulumi.Input<string>;
278
+ /**
279
+ * The write IOPS limit.
280
+ */
281
+ rate: pulumi.Input<number>;
282
+ }
219
283
  export interface ContainerHealthcheck {
220
284
  /**
221
285
  * Time between running the check (ms|s|m|h). Defaults to `0s`.
@@ -234,9 +298,9 @@ export interface ContainerHealthcheck {
234
298
  */
235
299
  startPeriod?: pulumi.Input<string>;
236
300
  /**
237
- * Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
301
+ * Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile.
238
302
  */
239
- tests: pulumi.Input<pulumi.Input<string>[]>;
303
+ tests?: pulumi.Input<pulumi.Input<string>[]>;
240
304
  /**
241
305
  * Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
242
306
  */
@@ -381,6 +445,14 @@ export interface ContainerNetworksAdvanced {
381
445
  * The network aliases of the container in the specific network.
382
446
  */
383
447
  aliases?: pulumi.Input<pulumi.Input<string>[]>;
448
+ /**
449
+ * An array of driver options for the network endpoint, e.g. `opts1=value`. This is the equivalent to repeating `--driver-opt` for `docker run`.
450
+ */
451
+ driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
452
+ /**
453
+ * Gateway priority for this endpoint. The endpoint with the highest priority will provide the default gateway for the container. This is the equivalent to `--gw-priority` for `docker run`.
454
+ */
455
+ gwPriority?: pulumi.Input<number>;
384
456
  /**
385
457
  * The IPV4 address of the container in the specific network.
386
458
  */
@@ -389,6 +461,10 @@ export interface ContainerNetworksAdvanced {
389
461
  * The IPV6 address of the container in the specific network.
390
462
  */
391
463
  ipv6Address?: pulumi.Input<string>;
464
+ /**
465
+ * The link-local IPs of the container in the specific network. This is the equivalent to repeating `--link-local-ip` for `docker run`.
466
+ */
467
+ linkLocalIps?: pulumi.Input<pulumi.Input<string>[]>;
392
468
  /**
393
469
  * The MAC address of the container in the specific network.
394
470
  */
@@ -477,6 +553,10 @@ export interface ContainerVolume {
477
553
  * If `true`, this volume will be readonly. Defaults to `false`.
478
554
  */
479
555
  readOnly?: pulumi.Input<boolean>;
556
+ /**
557
+ * SELinux relabel mode for bind mounts. Supported values are `z` and `Z`.
558
+ */
559
+ selinuxRelabel?: pulumi.Input<string>;
480
560
  /**
481
561
  * The name of the docker volume which should be mounted.
482
562
  */
@@ -533,11 +613,11 @@ export interface GetRegistryImageManifestsAuthConfig {
533
613
  /**
534
614
  * The password for the Docker registry.
535
615
  */
536
- password: string;
616
+ password?: string;
537
617
  /**
538
618
  * The username for the Docker registry.
539
619
  */
540
- username: string;
620
+ username?: string;
541
621
  }
542
622
  export interface GetRegistryImageManifestsAuthConfigArgs {
543
623
  /**
@@ -547,11 +627,11 @@ export interface GetRegistryImageManifestsAuthConfigArgs {
547
627
  /**
548
628
  * The password for the Docker registry.
549
629
  */
550
- password: pulumi.Input<string>;
630
+ password?: pulumi.Input<string>;
551
631
  /**
552
632
  * The username for the Docker registry.
553
633
  */
554
- username: pulumi.Input<string>;
634
+ username?: pulumi.Input<string>;
555
635
  }
556
636
  export interface NetworkIpamConfig {
557
637
  /**
@@ -603,7 +683,7 @@ export interface ProviderRegistryAuth {
603
683
  */
604
684
  authDisabled?: pulumi.Input<boolean>;
605
685
  /**
606
- * Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options.
686
+ * Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` env variable is set, the value of `DOCKER_CONFIG` is used as the path. `DOCKER_CONFIG` can be set to a directory (as per Docker CLI) or a file path directly. `configFile` has precedence over all other options.
607
687
  */
608
688
  configFile?: pulumi.Input<string>;
609
689
  /**
@@ -644,11 +724,11 @@ export interface RegistryImageAuthConfig {
644
724
  /**
645
725
  * The password for the Docker registry.
646
726
  */
647
- password: pulumi.Input<string>;
727
+ password?: pulumi.Input<string>;
648
728
  /**
649
729
  * The username for the Docker registry.
650
730
  */
651
- username: pulumi.Input<string>;
731
+ username?: pulumi.Input<string>;
652
732
  }
653
733
  export interface RegistryImageBuild {
654
734
  /**
@@ -674,7 +754,7 @@ export interface RegistryImageBuild {
674
754
  */
675
755
  buildLogFile?: pulumi.Input<string>;
676
756
  /**
677
- * Set the name of the buildx builder to use. If not set, the legacy builder is used.
757
+ * The name of the buildx builder to use. If BUILDX_BUILDER environment variable is set, it will be used. If left empty, the provider tries to resolve to the default builder - which might not always work. If you are in Windows, the legacy builder is used.
678
758
  */
679
759
  builder?: pulumi.Input<string>;
680
760
  /**
@@ -809,6 +889,10 @@ export interface RegistryImageBuild {
809
889
  * Configuration for ulimits
810
890
  */
811
891
  ulimits?: pulumi.Input<pulumi.Input<inputs.RegistryImageBuildUlimit>[]>;
892
+ /**
893
+ * Force using the legacy Docker builder for image builds, even if buildx/buildkit would be available.
894
+ */
895
+ useLegacyBuilder?: pulumi.Input<boolean>;
812
896
  /**
813
897
  * Version of the underlying builder to use
814
898
  */
@@ -900,7 +984,7 @@ export interface RemoteImageBuild {
900
984
  */
901
985
  buildLogFile?: pulumi.Input<string>;
902
986
  /**
903
- * Set the name of the buildx builder to use. If not set, the legacy builder is used.
987
+ * The name of the buildx builder to use. If BUILDX_BUILDER environment variable is set, it will be used. If left empty, the provider tries to resolve to the default builder - which might not always work. If you are in Windows, the legacy builder is used.
904
988
  */
905
989
  builder?: pulumi.Input<string>;
906
990
  /**
@@ -1035,6 +1119,10 @@ export interface RemoteImageBuild {
1035
1119
  * Configuration for ulimits
1036
1120
  */
1037
1121
  ulimits?: pulumi.Input<pulumi.Input<inputs.RemoteImageBuildUlimit>[]>;
1122
+ /**
1123
+ * Force using the legacy Docker builder for image builds, even if buildx/buildkit would be available.
1124
+ */
1125
+ useLegacyBuilder?: pulumi.Input<boolean>;
1038
1126
  /**
1039
1127
  * Version of the underlying builder to use
1040
1128
  */
@@ -1126,6 +1214,16 @@ export interface ServiceAuth {
1126
1214
  */
1127
1215
  username?: pulumi.Input<string>;
1128
1216
  }
1217
+ export interface ServiceConfigLabel {
1218
+ /**
1219
+ * Name of the label
1220
+ */
1221
+ label: pulumi.Input<string>;
1222
+ /**
1223
+ * Value of the label
1224
+ */
1225
+ value: pulumi.Input<string>;
1226
+ }
1129
1227
  export interface ServiceConvergeConfig {
1130
1228
  /**
1131
1229
  * The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
@@ -1152,7 +1250,7 @@ export interface ServiceEndpointSpecPort {
1152
1250
  */
1153
1251
  name?: pulumi.Input<string>;
1154
1252
  /**
1155
- * Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
1253
+ * Represents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
1156
1254
  */
1157
1255
  protocol?: pulumi.Input<string>;
1158
1256
  /**
@@ -1600,9 +1698,15 @@ export interface ServiceTaskSpecNetworksAdvanced {
1600
1698
  */
1601
1699
  driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
1602
1700
  /**
1603
- * The name/id of the network.
1701
+ * The id of the docker network to use. Please use `docker_network.id`. Using the name attribute of the docker network will lead to constant replacements.
1604
1702
  */
1605
- name: pulumi.Input<string>;
1703
+ id?: pulumi.Input<string>;
1704
+ /**
1705
+ * Deprecated attribute. The name/id of the docker network. Conflicts with `id` attribute.
1706
+ *
1707
+ * @deprecated Use the id attribute.
1708
+ */
1709
+ name?: pulumi.Input<string>;
1606
1710
  }
1607
1711
  export interface ServiceTaskSpecPlacement {
1608
1712
  /**
@@ -1644,7 +1748,7 @@ export interface ServiceTaskSpecResources {
1644
1748
  }
1645
1749
  export interface ServiceTaskSpecResourcesLimits {
1646
1750
  /**
1647
- * The amounf of memory in bytes the container allocates
1751
+ * The amount of memory in bytes the container allocates
1648
1752
  */
1649
1753
  memoryBytes?: pulumi.Input<number>;
1650
1754
  /**
@@ -1658,7 +1762,7 @@ export interface ServiceTaskSpecResourcesReservation {
1658
1762
  */
1659
1763
  genericResources?: pulumi.Input<inputs.ServiceTaskSpecResourcesReservationGenericResources>;
1660
1764
  /**
1661
- * The amounf of memory in bytes the container allocates
1765
+ * The amount of memory in bytes the container allocates
1662
1766
  */
1663
1767
  memoryBytes?: pulumi.Input<number>;
1664
1768
  /**
package/types/output.d.ts CHANGED
@@ -193,7 +193,7 @@ export interface ContainerCapabilities {
193
193
  }
194
194
  export interface ContainerDevice {
195
195
  /**
196
- * The path in the container where the device will be bound.
196
+ * The path in the container where the device will be bound. If not set, it defaults to the value of `hostPath`.
197
197
  */
198
198
  containerPath?: string;
199
199
  /**
@@ -205,6 +205,70 @@ export interface ContainerDevice {
205
205
  */
206
206
  permissions?: string;
207
207
  }
208
+ export interface ContainerDeviceReadBp {
209
+ /**
210
+ * The device path on the host, e.g. `/dev/sda`.
211
+ */
212
+ path: string;
213
+ /**
214
+ * The read rate limit in bytes per second.
215
+ */
216
+ rate: number;
217
+ }
218
+ export interface ContainerDeviceReadIop {
219
+ /**
220
+ * The device path on the host, e.g. `/dev/sda`.
221
+ */
222
+ path: string;
223
+ /**
224
+ * The read IOPS limit.
225
+ */
226
+ rate: number;
227
+ }
228
+ export interface ContainerDeviceRequest {
229
+ /**
230
+ * List of device capabilities. Only used with `nvidia` driver (e.g., `gpu`, `compute`, `utility`).
231
+ */
232
+ capabilities?: string[];
233
+ /**
234
+ * Number of devices to request. Use -1 for all devices. Only used with `nvidia` driver.
235
+ */
236
+ count?: number;
237
+ /**
238
+ * List of device IDs or CDI device identifiers (e.g., `nvidia.com/gpu=all`).
239
+ */
240
+ deviceIds?: string[];
241
+ /**
242
+ * The device driver to use. Common values: `cdi` for CDI devices, `nvidia` for NVIDIA GPU requests.
243
+ */
244
+ driver?: string;
245
+ /**
246
+ * Driver-specific options.
247
+ */
248
+ options?: {
249
+ [key: string]: string;
250
+ };
251
+ }
252
+ export interface ContainerDeviceWriteBp {
253
+ /**
254
+ * The device path on the host, e.g. `/dev/sda`.
255
+ */
256
+ path: string;
257
+ /**
258
+ * The write rate limit in bytes per second.
259
+ */
260
+ rate: number;
261
+ }
262
+ export interface ContainerDeviceWriteIop {
263
+ /**
264
+ * The device path on the host, e.g. `/dev/sda`.
265
+ */
266
+ path: string;
267
+ /**
268
+ * The write IOPS limit.
269
+ */
270
+ rate: number;
271
+ }
208
272
  export interface ContainerHealthcheck {
209
273
  /**
210
274
  * Time between running the check (ms|s|m|h). Defaults to `0s`.
@@ -223,9 +287,9 @@ export interface ContainerHealthcheck {
223
287
  */
224
288
  startPeriod?: string;
225
289
  /**
226
- * Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
290
+ * Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile.
227
291
  */
228
- tests: string[];
292
+ tests?: string[];
229
293
  /**
230
294
  * Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
231
295
  */
@@ -370,6 +434,14 @@ export interface ContainerNetworksAdvanced {
370
434
  * The network aliases of the container in the specific network.
371
435
  */
372
436
  aliases?: string[];
437
+ /**
438
+ * An array of driver options for the network endpoint, e.g. `opts1=value`. This is the equivalent to repeating `--driver-opt` for `docker run`.
439
+ */
440
+ driverOpts?: string[];
441
+ /**
442
+ * Gateway priority for this endpoint. The endpoint with the highest priority will provide the default gateway for the container. This is the equivalent to `--gw-priority` for `docker run`.
443
+ */
444
+ gwPriority?: number;
373
445
  /**
374
446
  * The IPV4 address of the container in the specific network.
375
447
  */
@@ -378,6 +450,10 @@ export interface ContainerNetworksAdvanced {
378
450
  * The IPV6 address of the container in the specific network.
379
451
  */
380
452
  ipv6Address?: string;
453
+ /**
454
+ * The link-local IPs of the container in the specific network. This is the equivalent to repeating `--link-local-ip` for `docker run`.
455
+ */
456
+ linkLocalIps?: string[];
381
457
  /**
382
458
  * The MAC address of the container in the specific network.
383
459
  */
@@ -466,11 +542,41 @@ export interface ContainerVolume {
466
542
  * If `true`, this volume will be readonly. Defaults to `false`.
467
543
  */
468
544
  readOnly?: boolean;
545
+ /**
546
+ * SELinux relabel mode for bind mounts. Supported values are `z` and `Z`.
547
+ */
548
+ selinuxRelabel?: string;
469
549
  /**
470
550
  * The name of the docker volume which should be mounted.
471
551
  */
472
552
  volumeName?: string;
473
553
  }
554
+ export interface GetNetworkContainer {
555
+ /**
556
+ * The container id.
557
+ */
558
+ containerId: string;
559
+ /**
560
+ * The endpoint id.
561
+ */
562
+ endpointId: string;
563
+ /**
564
+ * The IPv4 address.
565
+ */
566
+ ipv4Address: string;
567
+ /**
568
+ * The IPv6 address.
569
+ */
570
+ ipv6Address: string;
571
+ /**
572
+ * The MAC address.
573
+ */
574
+ macAddress: string;
575
+ /**
576
+ * The container name.
577
+ */
578
+ name: string;
579
+ }
474
580
  export interface GetNetworkIpamConfig {
475
581
  /**
476
582
  * Auxiliary IPv4 or IPv6 addresses used by Network driver
@@ -499,11 +605,11 @@ export interface GetRegistryImageManifestsAuthConfig {
499
605
  /**
500
606
  * The password for the Docker registry.
501
607
  */
502
- password: string;
608
+ password?: string;
503
609
  /**
504
610
  * The username for the Docker registry.
505
611
  */
506
- username: string;
612
+ username?: string;
507
613
  }
508
614
  export interface GetRegistryImageManifestsManifest {
509
615
  /**
@@ -571,11 +677,11 @@ export interface RegistryImageAuthConfig {
571
677
  /**
572
678
  * The password for the Docker registry.
573
679
  */
574
- password: string;
680
+ password?: string;
575
681
  /**
576
682
  * The username for the Docker registry.
577
683
  */
578
- username: string;
684
+ username?: string;
579
685
  }
580
686
  export interface RegistryImageBuild {
581
687
  /**
@@ -601,7 +707,7 @@ export interface RegistryImageBuild {
601
707
  */
602
708
  buildLogFile?: string;
603
709
  /**
604
- * Set the name of the buildx builder to use. If not set, the legacy builder is used.
710
+ * The name of the buildx builder to use. If BUILDX_BUILDER environment variable is set, it will be used. If left empty, the provider tries to resolve to the default builder - which might not always work. If you are in Windows, the legacy builder is used.
605
711
  */
606
712
  builder?: string;
607
713
  /**
@@ -736,6 +842,10 @@ export interface RegistryImageBuild {
736
842
  * Configuration for ulimits
737
843
  */
738
844
  ulimits?: outputs.RegistryImageBuildUlimit[];
845
+ /**
846
+ * Force using the legacy Docker builder for image builds, even if buildx/buildkit would be available.
847
+ */
848
+ useLegacyBuilder?: boolean;
739
849
  /**
740
850
  * Version of the underlying builder to use
741
851
  */
@@ -827,7 +937,7 @@ export interface RemoteImageBuild {
827
937
  */
828
938
  buildLogFile?: string;
829
939
  /**
830
- * Set the name of the buildx builder to use. If not set, the legacy builder is used.
940
+ * The name of the buildx builder to use. If BUILDX_BUILDER environment variable is set, it will be used. If left empty, the provider tries to resolve to the default builder - which might not always work. If you are in Windows, the legacy builder is used.
831
941
  */
832
942
  builder?: string;
833
943
  /**
@@ -962,6 +1072,10 @@ export interface RemoteImageBuild {
962
1072
  * Configuration for ulimits
963
1073
  */
964
1074
  ulimits?: outputs.RemoteImageBuildUlimit[];
1075
+ /**
1076
+ * Force using the legacy Docker builder for image builds, even if buildx/buildkit would be available.
1077
+ */
1078
+ useLegacyBuilder?: boolean;
965
1079
  /**
966
1080
  * Version of the underlying builder to use
967
1081
  */
@@ -1053,6 +1167,16 @@ export interface ServiceAuth {
1053
1167
  */
1054
1168
  username?: string;
1055
1169
  }
1170
+ export interface ServiceConfigLabel {
1171
+ /**
1172
+ * Name of the label
1173
+ */
1174
+ label: string;
1175
+ /**
1176
+ * Value of the label
1177
+ */
1178
+ value: string;
1179
+ }
1056
1180
  export interface ServiceConvergeConfig {
1057
1181
  /**
1058
1182
  * The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
@@ -1079,7 +1203,7 @@ export interface ServiceEndpointSpecPort {
1079
1203
  */
1080
1204
  name?: string;
1081
1205
  /**
1082
- * Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
1206
+ * Represents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
1083
1207
  */
1084
1208
  protocol?: string;
1085
1209
  /**
@@ -1527,9 +1651,15 @@ export interface ServiceTaskSpecNetworksAdvanced {
1527
1651
  */
1528
1652
  driverOpts?: string[];
1529
1653
  /**
1530
- * The name/id of the network.
1654
+ * The id of the docker network to use. Please use `docker_network.id`. Using the name attribute of the docker network will lead to constant replacements.
1531
1655
  */
1532
- name: string;
1656
+ id?: string;
1657
+ /**
1658
+ * Deprecated attribute. The name/id of the docker network. Conflicts with `id` attribute.
1659
+ *
1660
+ * @deprecated Use the id attribute.
1661
+ */
1662
+ name?: string;
1533
1663
  }
1534
1664
  export interface ServiceTaskSpecPlacement {
1535
1665
  /**
@@ -1571,7 +1701,7 @@ export interface ServiceTaskSpecResources {
1571
1701
  }
1572
1702
  export interface ServiceTaskSpecResourcesLimits {
1573
1703
  /**
1574
- * The amounf of memory in bytes the container allocates
1704
+ * The amount of memory in bytes the container allocates
1575
1705
  */
1576
1706
  memoryBytes?: number;
1577
1707
  /**
@@ -1585,7 +1715,7 @@ export interface ServiceTaskSpecResourcesReservation {
1585
1715
  */
1586
1716
  genericResources?: outputs.ServiceTaskSpecResourcesReservationGenericResources;
1587
1717
  /**
1588
- * The amounf of memory in bytes the container allocates
1718
+ * The amount of memory in bytes the container allocates
1589
1719
  */
1590
1720
  memoryBytes?: number;
1591
1721
  /**
@@ -1710,7 +1840,7 @@ export declare namespace config {
1710
1840
  */
1711
1841
  authDisabled?: boolean;
1712
1842
  /**
1713
- * Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options.
1843
+ * Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` env variable is set, the value of `DOCKER_CONFIG` is used as the path. `DOCKER_CONFIG` can be set to a directory (as per Docker CLI) or a file path directly. `configFile` has precedence over all other options.
1714
1844
  */
1715
1845
  configFile?: string;
1716
1846
  /**