@pulumi/docker 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/container.d.ts +28 -10
- package/container.js +28 -10
- package/container.js.map +1 -1
- package/getNetwork.d.ts +4 -0
- package/getNetwork.js +4 -0
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +10 -0
- package/getPlugin.js +10 -0
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +4 -0
- package/getRegistryImage.js +4 -0
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +4 -0
- package/getRemoteImage.js +4 -0
- package/getRemoteImage.js.map +1 -1
- package/image.d.ts +5 -3
- package/image.js +3 -3
- package/image.js.map +1 -1
- package/network.d.ts +27 -3
- package/network.js +27 -3
- package/network.js.map +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +3 -1
- package/plugin.js +3 -1
- package/plugin.js.map +1 -1
- package/registryImage.d.ts +2 -0
- package/registryImage.js +2 -0
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +34 -0
- package/remoteImage.js +34 -0
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +3 -1
- package/secret.js +3 -1
- package/secret.js.map +1 -1
- package/service.d.ts +46 -21
- package/service.js +40 -15
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +25 -5
- package/serviceConfig.js +25 -5
- package/serviceConfig.js.map +1 -1
- package/types/input.d.ts +63 -13
- package/types/output.d.ts +67 -13
- package/volume.d.ts +27 -3
- package/volume.js +27 -3
- package/volume.js.map +1 -1
package/types/input.d.ts
CHANGED
|
@@ -153,13 +153,37 @@ export interface ContainerMountVolumeOptionsLabel {
|
|
|
153
153
|
value: pulumi.Input<string>;
|
|
154
154
|
}
|
|
155
155
|
export interface ContainerNetworkData {
|
|
156
|
+
/**
|
|
157
|
+
* The network gateway of the container.
|
|
158
|
+
*/
|
|
156
159
|
gateway?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The IPV6 address of the container.
|
|
162
|
+
*/
|
|
157
163
|
globalIpv6Address?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The IPV6 prefix length address of the container.
|
|
166
|
+
*/
|
|
158
167
|
globalIpv6PrefixLength?: pulumi.Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* The IP address of the container.
|
|
170
|
+
*/
|
|
159
171
|
ipAddress?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The IP prefix length of the container.
|
|
174
|
+
*/
|
|
160
175
|
ipPrefixLength?: pulumi.Input<number>;
|
|
176
|
+
/**
|
|
177
|
+
* The IPV6 gateway of the container.
|
|
178
|
+
*/
|
|
161
179
|
ipv6Gateway?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The MAC address of the container.
|
|
182
|
+
*/
|
|
162
183
|
macAddress?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The name of the network
|
|
186
|
+
*/
|
|
163
187
|
networkName?: pulumi.Input<string>;
|
|
164
188
|
}
|
|
165
189
|
export interface ContainerNetworksAdvanced {
|
|
@@ -217,6 +241,9 @@ export interface ContainerUpload {
|
|
|
217
241
|
* Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source`
|
|
218
242
|
*/
|
|
219
243
|
content?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
|
|
246
|
+
*/
|
|
220
247
|
contentBase64?: pulumi.Input<string>;
|
|
221
248
|
/**
|
|
222
249
|
* If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
@@ -261,6 +288,10 @@ export interface ContainerVolume {
|
|
|
261
288
|
* The Docker build context
|
|
262
289
|
*/
|
|
263
290
|
export interface DockerBuild {
|
|
291
|
+
/**
|
|
292
|
+
* Custom host-to-IP mappings to use while building (format: "host:ip")
|
|
293
|
+
*/
|
|
294
|
+
addHosts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
264
295
|
/**
|
|
265
296
|
* An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass build-time variables that can be accessed like environment variables inside the RUN instruction.
|
|
266
297
|
*/
|
|
@@ -283,6 +314,10 @@ export interface DockerBuild {
|
|
|
283
314
|
* The path to the Dockerfile to use.
|
|
284
315
|
*/
|
|
285
316
|
dockerfile?: pulumi.Input<string>;
|
|
317
|
+
/**
|
|
318
|
+
* Set the networking mode for RUN instructions
|
|
319
|
+
*/
|
|
320
|
+
network?: pulumi.Input<string>;
|
|
286
321
|
/**
|
|
287
322
|
* The architecture of the platform you want to build this image for, e.g. `linux/arm64`.
|
|
288
323
|
*/
|
|
@@ -333,11 +368,26 @@ export interface PluginGrantPermission {
|
|
|
333
368
|
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
334
369
|
}
|
|
335
370
|
export interface ProviderRegistryAuth {
|
|
371
|
+
/**
|
|
372
|
+
* Address of the registry
|
|
373
|
+
*/
|
|
336
374
|
address: pulumi.Input<string>;
|
|
337
375
|
authDisabled?: pulumi.Input<boolean>;
|
|
376
|
+
/**
|
|
377
|
+
* 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.
|
|
378
|
+
*/
|
|
338
379
|
configFile?: pulumi.Input<string>;
|
|
380
|
+
/**
|
|
381
|
+
* Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password.
|
|
382
|
+
*/
|
|
339
383
|
configFileContent?: pulumi.Input<string>;
|
|
384
|
+
/**
|
|
385
|
+
* Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set.
|
|
386
|
+
*/
|
|
340
387
|
password?: pulumi.Input<string>;
|
|
388
|
+
/**
|
|
389
|
+
* Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set.
|
|
390
|
+
*/
|
|
341
391
|
username?: pulumi.Input<string>;
|
|
342
392
|
}
|
|
343
393
|
/**
|
|
@@ -771,7 +821,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
771
821
|
*/
|
|
772
822
|
privileges?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivileges>;
|
|
773
823
|
/**
|
|
774
|
-
*
|
|
824
|
+
* Mount the container's root filesystem as read only
|
|
775
825
|
*/
|
|
776
826
|
readOnly?: pulumi.Input<boolean>;
|
|
777
827
|
/**
|
|
@@ -793,7 +843,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
793
843
|
[key: string]: any;
|
|
794
844
|
}>;
|
|
795
845
|
/**
|
|
796
|
-
*
|
|
846
|
+
* The user inside the container
|
|
797
847
|
*/
|
|
798
848
|
user?: pulumi.Input<string>;
|
|
799
849
|
}
|
|
@@ -855,7 +905,7 @@ export interface ServiceTaskSpecContainerSpecHealthcheck {
|
|
|
855
905
|
*/
|
|
856
906
|
tests: pulumi.Input<pulumi.Input<string>[]>;
|
|
857
907
|
/**
|
|
858
|
-
*
|
|
908
|
+
* Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
859
909
|
*/
|
|
860
910
|
timeout?: pulumi.Input<string>;
|
|
861
911
|
}
|
|
@@ -917,7 +967,7 @@ export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
|
917
967
|
}
|
|
918
968
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
919
969
|
/**
|
|
920
|
-
* The mode
|
|
970
|
+
* The permission mode for the tmpfs mount in an integer
|
|
921
971
|
*/
|
|
922
972
|
mode?: pulumi.Input<number>;
|
|
923
973
|
/**
|
|
@@ -989,7 +1039,7 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
989
1039
|
*/
|
|
990
1040
|
role?: pulumi.Input<string>;
|
|
991
1041
|
/**
|
|
992
|
-
*
|
|
1042
|
+
* SELinux type label
|
|
993
1043
|
*/
|
|
994
1044
|
type?: pulumi.Input<string>;
|
|
995
1045
|
/**
|
|
@@ -999,11 +1049,11 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
999
1049
|
}
|
|
1000
1050
|
export interface ServiceTaskSpecContainerSpecSecret {
|
|
1001
1051
|
/**
|
|
1002
|
-
* Represents the file GID. Defaults to `0
|
|
1052
|
+
* Represents the file GID. Defaults to `0`
|
|
1003
1053
|
*/
|
|
1004
1054
|
fileGid?: pulumi.Input<string>;
|
|
1005
1055
|
/**
|
|
1006
|
-
* Represents represents the FileMode of the file. Defaults to `0o444
|
|
1056
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`
|
|
1007
1057
|
*/
|
|
1008
1058
|
fileMode?: pulumi.Input<number>;
|
|
1009
1059
|
/**
|
|
@@ -1011,7 +1061,7 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
1011
1061
|
*/
|
|
1012
1062
|
fileName: pulumi.Input<string>;
|
|
1013
1063
|
/**
|
|
1014
|
-
* Represents the file UID. Defaults to `0
|
|
1064
|
+
* Represents the file UID. Defaults to `0`
|
|
1015
1065
|
*/
|
|
1016
1066
|
fileUid?: pulumi.Input<string>;
|
|
1017
1067
|
/**
|
|
@@ -1025,11 +1075,11 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
1025
1075
|
}
|
|
1026
1076
|
export interface ServiceTaskSpecLogDriver {
|
|
1027
1077
|
/**
|
|
1028
|
-
*
|
|
1078
|
+
* The logging driver to use
|
|
1029
1079
|
*/
|
|
1030
1080
|
name: pulumi.Input<string>;
|
|
1031
1081
|
/**
|
|
1032
|
-
*
|
|
1082
|
+
* The options for the logging driver
|
|
1033
1083
|
*/
|
|
1034
1084
|
options?: pulumi.Input<{
|
|
1035
1085
|
[key: string]: pulumi.Input<string>;
|
|
@@ -1045,7 +1095,7 @@ export interface ServiceTaskSpecNetworksAdvanced {
|
|
|
1045
1095
|
*/
|
|
1046
1096
|
driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1047
1097
|
/**
|
|
1048
|
-
*
|
|
1098
|
+
* The name/id of the network.
|
|
1049
1099
|
*/
|
|
1050
1100
|
name: pulumi.Input<string>;
|
|
1051
1101
|
}
|
|
@@ -1107,7 +1157,7 @@ export interface ServiceTaskSpecResourcesReservation {
|
|
|
1107
1157
|
*/
|
|
1108
1158
|
memoryBytes?: pulumi.Input<number>;
|
|
1109
1159
|
/**
|
|
1110
|
-
* CPU shares in units of
|
|
1160
|
+
* CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
|
|
1111
1161
|
*/
|
|
1112
1162
|
nanoCpus?: pulumi.Input<number>;
|
|
1113
1163
|
}
|
|
@@ -1127,7 +1177,7 @@ export interface ServiceTaskSpecRestartPolicy {
|
|
|
1127
1177
|
*/
|
|
1128
1178
|
condition?: pulumi.Input<string>;
|
|
1129
1179
|
/**
|
|
1130
|
-
*
|
|
1180
|
+
* Delay between restart attempts (ms|s|m|h)
|
|
1131
1181
|
*/
|
|
1132
1182
|
delay?: pulumi.Input<string>;
|
|
1133
1183
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -142,13 +142,37 @@ export interface ContainerMountVolumeOptionsLabel {
|
|
|
142
142
|
value: string;
|
|
143
143
|
}
|
|
144
144
|
export interface ContainerNetworkData {
|
|
145
|
+
/**
|
|
146
|
+
* The network gateway of the container.
|
|
147
|
+
*/
|
|
145
148
|
gateway: string;
|
|
149
|
+
/**
|
|
150
|
+
* The IPV6 address of the container.
|
|
151
|
+
*/
|
|
146
152
|
globalIpv6Address: string;
|
|
153
|
+
/**
|
|
154
|
+
* The IPV6 prefix length address of the container.
|
|
155
|
+
*/
|
|
147
156
|
globalIpv6PrefixLength: number;
|
|
157
|
+
/**
|
|
158
|
+
* The IP address of the container.
|
|
159
|
+
*/
|
|
148
160
|
ipAddress: string;
|
|
161
|
+
/**
|
|
162
|
+
* The IP prefix length of the container.
|
|
163
|
+
*/
|
|
149
164
|
ipPrefixLength: number;
|
|
165
|
+
/**
|
|
166
|
+
* The IPV6 gateway of the container.
|
|
167
|
+
*/
|
|
150
168
|
ipv6Gateway: string;
|
|
169
|
+
/**
|
|
170
|
+
* The MAC address of the container.
|
|
171
|
+
*/
|
|
151
172
|
macAddress: string;
|
|
173
|
+
/**
|
|
174
|
+
* The name of the network
|
|
175
|
+
*/
|
|
152
176
|
networkName: string;
|
|
153
177
|
}
|
|
154
178
|
export interface ContainerNetworksAdvanced {
|
|
@@ -206,6 +230,9 @@ export interface ContainerUpload {
|
|
|
206
230
|
* Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source`
|
|
207
231
|
*/
|
|
208
232
|
content?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
|
|
235
|
+
*/
|
|
209
236
|
contentBase64?: string;
|
|
210
237
|
/**
|
|
211
238
|
* If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
@@ -247,11 +274,23 @@ export interface ContainerVolume {
|
|
|
247
274
|
volumeName?: string;
|
|
248
275
|
}
|
|
249
276
|
export interface GetNetworkIpamConfig {
|
|
277
|
+
/**
|
|
278
|
+
* Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
279
|
+
*/
|
|
250
280
|
auxAddress?: {
|
|
251
281
|
[key: string]: any;
|
|
252
282
|
};
|
|
283
|
+
/**
|
|
284
|
+
* The IP address of the gateway
|
|
285
|
+
*/
|
|
253
286
|
gateway?: string;
|
|
287
|
+
/**
|
|
288
|
+
* The ip range in CIDR form
|
|
289
|
+
*/
|
|
254
290
|
ipRange?: string;
|
|
291
|
+
/**
|
|
292
|
+
* The subnet in CIDR form
|
|
293
|
+
*/
|
|
255
294
|
subnet?: string;
|
|
256
295
|
}
|
|
257
296
|
export interface NetworkIpamConfig {
|
|
@@ -708,7 +747,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
708
747
|
*/
|
|
709
748
|
privileges?: outputs.ServiceTaskSpecContainerSpecPrivileges;
|
|
710
749
|
/**
|
|
711
|
-
*
|
|
750
|
+
* Mount the container's root filesystem as read only
|
|
712
751
|
*/
|
|
713
752
|
readOnly?: boolean;
|
|
714
753
|
/**
|
|
@@ -730,7 +769,7 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
730
769
|
[key: string]: any;
|
|
731
770
|
};
|
|
732
771
|
/**
|
|
733
|
-
*
|
|
772
|
+
* The user inside the container
|
|
734
773
|
*/
|
|
735
774
|
user?: string;
|
|
736
775
|
}
|
|
@@ -792,7 +831,7 @@ export interface ServiceTaskSpecContainerSpecHealthcheck {
|
|
|
792
831
|
*/
|
|
793
832
|
tests: string[];
|
|
794
833
|
/**
|
|
795
|
-
*
|
|
834
|
+
* Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
796
835
|
*/
|
|
797
836
|
timeout?: string;
|
|
798
837
|
}
|
|
@@ -854,7 +893,7 @@ export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
|
854
893
|
}
|
|
855
894
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
856
895
|
/**
|
|
857
|
-
* The mode
|
|
896
|
+
* The permission mode for the tmpfs mount in an integer
|
|
858
897
|
*/
|
|
859
898
|
mode?: number;
|
|
860
899
|
/**
|
|
@@ -926,7 +965,7 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
926
965
|
*/
|
|
927
966
|
role?: string;
|
|
928
967
|
/**
|
|
929
|
-
*
|
|
968
|
+
* SELinux type label
|
|
930
969
|
*/
|
|
931
970
|
type?: string;
|
|
932
971
|
/**
|
|
@@ -936,11 +975,11 @@ export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
|
936
975
|
}
|
|
937
976
|
export interface ServiceTaskSpecContainerSpecSecret {
|
|
938
977
|
/**
|
|
939
|
-
* Represents the file GID. Defaults to `0
|
|
978
|
+
* Represents the file GID. Defaults to `0`
|
|
940
979
|
*/
|
|
941
980
|
fileGid?: string;
|
|
942
981
|
/**
|
|
943
|
-
* Represents represents the FileMode of the file. Defaults to `0o444
|
|
982
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`
|
|
944
983
|
*/
|
|
945
984
|
fileMode?: number;
|
|
946
985
|
/**
|
|
@@ -948,7 +987,7 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
948
987
|
*/
|
|
949
988
|
fileName: string;
|
|
950
989
|
/**
|
|
951
|
-
* Represents the file UID. Defaults to `0
|
|
990
|
+
* Represents the file UID. Defaults to `0`
|
|
952
991
|
*/
|
|
953
992
|
fileUid?: string;
|
|
954
993
|
/**
|
|
@@ -962,11 +1001,11 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
962
1001
|
}
|
|
963
1002
|
export interface ServiceTaskSpecLogDriver {
|
|
964
1003
|
/**
|
|
965
|
-
*
|
|
1004
|
+
* The logging driver to use
|
|
966
1005
|
*/
|
|
967
1006
|
name: string;
|
|
968
1007
|
/**
|
|
969
|
-
*
|
|
1008
|
+
* The options for the logging driver
|
|
970
1009
|
*/
|
|
971
1010
|
options?: {
|
|
972
1011
|
[key: string]: string;
|
|
@@ -982,7 +1021,7 @@ export interface ServiceTaskSpecNetworksAdvanced {
|
|
|
982
1021
|
*/
|
|
983
1022
|
driverOpts?: string[];
|
|
984
1023
|
/**
|
|
985
|
-
*
|
|
1024
|
+
* The name/id of the network.
|
|
986
1025
|
*/
|
|
987
1026
|
name: string;
|
|
988
1027
|
}
|
|
@@ -1044,7 +1083,7 @@ export interface ServiceTaskSpecResourcesReservation {
|
|
|
1044
1083
|
*/
|
|
1045
1084
|
memoryBytes?: number;
|
|
1046
1085
|
/**
|
|
1047
|
-
* CPU shares in units of
|
|
1086
|
+
* CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
|
|
1048
1087
|
*/
|
|
1049
1088
|
nanoCpus?: number;
|
|
1050
1089
|
}
|
|
@@ -1064,7 +1103,7 @@ export interface ServiceTaskSpecRestartPolicy {
|
|
|
1064
1103
|
*/
|
|
1065
1104
|
condition?: string;
|
|
1066
1105
|
/**
|
|
1067
|
-
*
|
|
1106
|
+
* Delay between restart attempts (ms|s|m|h)
|
|
1068
1107
|
*/
|
|
1069
1108
|
delay?: string;
|
|
1070
1109
|
/**
|
|
@@ -1114,11 +1153,26 @@ export interface VolumeLabel {
|
|
|
1114
1153
|
}
|
|
1115
1154
|
export declare namespace config {
|
|
1116
1155
|
interface RegistryAuth {
|
|
1156
|
+
/**
|
|
1157
|
+
* Address of the registry
|
|
1158
|
+
*/
|
|
1117
1159
|
address: string;
|
|
1118
1160
|
authDisabled?: boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* 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.
|
|
1163
|
+
*/
|
|
1119
1164
|
configFile?: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password.
|
|
1167
|
+
*/
|
|
1120
1168
|
configFileContent?: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set.
|
|
1171
|
+
*/
|
|
1121
1172
|
password?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set.
|
|
1175
|
+
*/
|
|
1122
1176
|
username?: string;
|
|
1123
1177
|
}
|
|
1124
1178
|
}
|
package/volume.d.ts
CHANGED
|
@@ -7,21 +7,45 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
13
14
|
*
|
|
14
15
|
* const sharedVolume = new docker.Volume("sharedVolume", {});
|
|
15
16
|
* ```
|
|
17
|
+
* <!--End PulumiCodeChooser -->
|
|
16
18
|
*
|
|
17
19
|
* ## Import
|
|
18
20
|
*
|
|
19
|
-
* ### Example
|
|
21
|
+
* ### Example
|
|
20
22
|
*
|
|
21
|
-
*
|
|
23
|
+
* Assuming you created a `volume` as follows
|
|
24
|
+
*
|
|
25
|
+
* #!/bin/bash
|
|
26
|
+
*
|
|
27
|
+
* docker volume create
|
|
28
|
+
*
|
|
29
|
+
* prints the long ID
|
|
30
|
+
*
|
|
31
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
32
|
+
*
|
|
33
|
+
* you provide the definition for the resource as follows
|
|
34
|
+
*
|
|
35
|
+
* terraform
|
|
36
|
+
*
|
|
37
|
+
* resource "docker_volume" "foo" {
|
|
38
|
+
*
|
|
39
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
40
|
+
*
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* then the import command is as follows
|
|
44
|
+
*
|
|
45
|
+
* #!/bin/bash
|
|
22
46
|
*
|
|
23
47
|
* ```sh
|
|
24
|
-
*
|
|
48
|
+
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
25
49
|
* ```
|
|
26
50
|
*/
|
|
27
51
|
export declare class Volume extends pulumi.CustomResource {
|
package/volume.js
CHANGED
|
@@ -11,21 +11,45 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as docker from "@pulumi/docker";
|
|
17
18
|
*
|
|
18
19
|
* const sharedVolume = new docker.Volume("sharedVolume", {});
|
|
19
20
|
* ```
|
|
21
|
+
* <!--End PulumiCodeChooser -->
|
|
20
22
|
*
|
|
21
23
|
* ## Import
|
|
22
24
|
*
|
|
23
|
-
* ### Example
|
|
25
|
+
* ### Example
|
|
24
26
|
*
|
|
25
|
-
*
|
|
27
|
+
* Assuming you created a `volume` as follows
|
|
28
|
+
*
|
|
29
|
+
* #!/bin/bash
|
|
30
|
+
*
|
|
31
|
+
* docker volume create
|
|
32
|
+
*
|
|
33
|
+
* prints the long ID
|
|
34
|
+
*
|
|
35
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
36
|
+
*
|
|
37
|
+
* you provide the definition for the resource as follows
|
|
38
|
+
*
|
|
39
|
+
* terraform
|
|
40
|
+
*
|
|
41
|
+
* resource "docker_volume" "foo" {
|
|
42
|
+
*
|
|
43
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
44
|
+
*
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* then the import command is as follows
|
|
48
|
+
*
|
|
49
|
+
* #!/bin/bash
|
|
26
50
|
*
|
|
27
51
|
* ```sh
|
|
28
|
-
*
|
|
52
|
+
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
29
53
|
* ```
|
|
30
54
|
*/
|
|
31
55
|
class Volume extends pulumi.CustomResource {
|
package/volume.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCA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