pulumi-docker 4.8.0a1750226298__py3-none-any.whl → 4.8.0a1750280940__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-docker might be problematic. Click here for more details.

@@ -25,9 +25,12 @@ class ContainerArgs:
25
25
  image: pulumi.Input[builtins.str],
26
26
  attach: Optional[pulumi.Input[builtins.bool]] = None,
27
27
  capabilities: Optional[pulumi.Input['ContainerCapabilitiesArgs']] = None,
28
+ cgroup_parent: Optional[pulumi.Input[builtins.str]] = None,
28
29
  cgroupns_mode: Optional[pulumi.Input[builtins.str]] = None,
29
30
  command: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
30
31
  container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
32
+ cpu_period: Optional[pulumi.Input[builtins.int]] = None,
33
+ cpu_quota: Optional[pulumi.Input[builtins.int]] = None,
31
34
  cpu_set: Optional[pulumi.Input[builtins.str]] = None,
32
35
  cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
33
36
  cpus: Optional[pulumi.Input[builtins.str]] = None,
@@ -90,12 +93,15 @@ class ContainerArgs:
90
93
  :param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
91
94
  :param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
92
95
  :param pulumi.Input['ContainerCapabilitiesArgs'] capabilities: Add or drop certrain linux capabilities.
96
+ :param pulumi.Input[builtins.str] cgroup_parent: Optional parent cgroup for the container
93
97
  :param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
94
98
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: 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","-f","baz.conf"]`.
95
99
  :param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
100
+ :param pulumi.Input[builtins.int] cpu_period: Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
101
+ :param pulumi.Input[builtins.int] cpu_quota: Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
96
102
  :param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
97
103
  :param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
98
- :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
104
+ :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
99
105
  :param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
100
106
  :param pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]] devices: Bind devices to the container.
101
107
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
@@ -155,12 +161,18 @@ class ContainerArgs:
155
161
  pulumi.set(__self__, "attach", attach)
156
162
  if capabilities is not None:
157
163
  pulumi.set(__self__, "capabilities", capabilities)
164
+ if cgroup_parent is not None:
165
+ pulumi.set(__self__, "cgroup_parent", cgroup_parent)
158
166
  if cgroupns_mode is not None:
159
167
  pulumi.set(__self__, "cgroupns_mode", cgroupns_mode)
160
168
  if command is not None:
161
169
  pulumi.set(__self__, "command", command)
162
170
  if container_read_refresh_timeout_milliseconds is not None:
163
171
  pulumi.set(__self__, "container_read_refresh_timeout_milliseconds", container_read_refresh_timeout_milliseconds)
172
+ if cpu_period is not None:
173
+ pulumi.set(__self__, "cpu_period", cpu_period)
174
+ if cpu_quota is not None:
175
+ pulumi.set(__self__, "cpu_quota", cpu_quota)
164
176
  if cpu_set is not None:
165
177
  pulumi.set(__self__, "cpu_set", cpu_set)
166
178
  if cpu_shares is not None:
@@ -312,6 +324,18 @@ class ContainerArgs:
312
324
  def capabilities(self, value: Optional[pulumi.Input['ContainerCapabilitiesArgs']]):
313
325
  pulumi.set(self, "capabilities", value)
314
326
 
327
+ @property
328
+ @pulumi.getter(name="cgroupParent")
329
+ def cgroup_parent(self) -> Optional[pulumi.Input[builtins.str]]:
330
+ """
331
+ Optional parent cgroup for the container
332
+ """
333
+ return pulumi.get(self, "cgroup_parent")
334
+
335
+ @cgroup_parent.setter
336
+ def cgroup_parent(self, value: Optional[pulumi.Input[builtins.str]]):
337
+ pulumi.set(self, "cgroup_parent", value)
338
+
315
339
  @property
316
340
  @pulumi.getter(name="cgroupnsMode")
317
341
  def cgroupns_mode(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -348,6 +372,30 @@ class ContainerArgs:
348
372
  def container_read_refresh_timeout_milliseconds(self, value: Optional[pulumi.Input[builtins.int]]):
349
373
  pulumi.set(self, "container_read_refresh_timeout_milliseconds", value)
350
374
 
375
+ @property
376
+ @pulumi.getter(name="cpuPeriod")
377
+ def cpu_period(self) -> Optional[pulumi.Input[builtins.int]]:
378
+ """
379
+ Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
380
+ """
381
+ return pulumi.get(self, "cpu_period")
382
+
383
+ @cpu_period.setter
384
+ def cpu_period(self, value: Optional[pulumi.Input[builtins.int]]):
385
+ pulumi.set(self, "cpu_period", value)
386
+
387
+ @property
388
+ @pulumi.getter(name="cpuQuota")
389
+ def cpu_quota(self) -> Optional[pulumi.Input[builtins.int]]:
390
+ """
391
+ Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
392
+ """
393
+ return pulumi.get(self, "cpu_quota")
394
+
395
+ @cpu_quota.setter
396
+ def cpu_quota(self, value: Optional[pulumi.Input[builtins.int]]):
397
+ pulumi.set(self, "cpu_quota", value)
398
+
351
399
  @property
352
400
  @pulumi.getter(name="cpuSet")
353
401
  def cpu_set(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -376,7 +424,7 @@ class ContainerArgs:
376
424
  @pulumi.getter
377
425
  def cpus(self) -> Optional[pulumi.Input[builtins.str]]:
378
426
  """
379
- Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
427
+ Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
380
428
  """
381
429
  return pulumi.get(self, "cpus")
382
430
 
@@ -1036,10 +1084,13 @@ class _ContainerState:
1036
1084
  attach: Optional[pulumi.Input[builtins.bool]] = None,
1037
1085
  bridge: Optional[pulumi.Input[builtins.str]] = None,
1038
1086
  capabilities: Optional[pulumi.Input['ContainerCapabilitiesArgs']] = None,
1087
+ cgroup_parent: Optional[pulumi.Input[builtins.str]] = None,
1039
1088
  cgroupns_mode: Optional[pulumi.Input[builtins.str]] = None,
1040
1089
  command: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
1041
1090
  container_logs: Optional[pulumi.Input[builtins.str]] = None,
1042
1091
  container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
1092
+ cpu_period: Optional[pulumi.Input[builtins.int]] = None,
1093
+ cpu_quota: Optional[pulumi.Input[builtins.int]] = None,
1043
1094
  cpu_set: Optional[pulumi.Input[builtins.str]] = None,
1044
1095
  cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
1045
1096
  cpus: Optional[pulumi.Input[builtins.str]] = None,
@@ -1105,13 +1156,16 @@ class _ContainerState:
1105
1156
  :param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
1106
1157
  :param pulumi.Input[builtins.str] bridge: The network bridge of the container as read from its NetworkSettings.
1107
1158
  :param pulumi.Input['ContainerCapabilitiesArgs'] capabilities: Add or drop certrain linux capabilities.
1159
+ :param pulumi.Input[builtins.str] cgroup_parent: Optional parent cgroup for the container
1108
1160
  :param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
1109
1161
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: 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","-f","baz.conf"]`.
1110
1162
  :param pulumi.Input[builtins.str] container_logs: The logs of the container if its execution is done (`attach` must be disabled).
1111
1163
  :param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
1164
+ :param pulumi.Input[builtins.int] cpu_period: Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
1165
+ :param pulumi.Input[builtins.int] cpu_quota: Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
1112
1166
  :param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
1113
1167
  :param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
1114
- :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
1168
+ :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
1115
1169
  :param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
1116
1170
  :param pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]] devices: Bind devices to the container.
1117
1171
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
@@ -1175,6 +1229,8 @@ class _ContainerState:
1175
1229
  pulumi.set(__self__, "bridge", bridge)
1176
1230
  if capabilities is not None:
1177
1231
  pulumi.set(__self__, "capabilities", capabilities)
1232
+ if cgroup_parent is not None:
1233
+ pulumi.set(__self__, "cgroup_parent", cgroup_parent)
1178
1234
  if cgroupns_mode is not None:
1179
1235
  pulumi.set(__self__, "cgroupns_mode", cgroupns_mode)
1180
1236
  if command is not None:
@@ -1183,6 +1239,10 @@ class _ContainerState:
1183
1239
  pulumi.set(__self__, "container_logs", container_logs)
1184
1240
  if container_read_refresh_timeout_milliseconds is not None:
1185
1241
  pulumi.set(__self__, "container_read_refresh_timeout_milliseconds", container_read_refresh_timeout_milliseconds)
1242
+ if cpu_period is not None:
1243
+ pulumi.set(__self__, "cpu_period", cpu_period)
1244
+ if cpu_quota is not None:
1245
+ pulumi.set(__self__, "cpu_quota", cpu_quota)
1186
1246
  if cpu_set is not None:
1187
1247
  pulumi.set(__self__, "cpu_set", cpu_set)
1188
1248
  if cpu_shares is not None:
@@ -1340,6 +1400,18 @@ class _ContainerState:
1340
1400
  def capabilities(self, value: Optional[pulumi.Input['ContainerCapabilitiesArgs']]):
1341
1401
  pulumi.set(self, "capabilities", value)
1342
1402
 
1403
+ @property
1404
+ @pulumi.getter(name="cgroupParent")
1405
+ def cgroup_parent(self) -> Optional[pulumi.Input[builtins.str]]:
1406
+ """
1407
+ Optional parent cgroup for the container
1408
+ """
1409
+ return pulumi.get(self, "cgroup_parent")
1410
+
1411
+ @cgroup_parent.setter
1412
+ def cgroup_parent(self, value: Optional[pulumi.Input[builtins.str]]):
1413
+ pulumi.set(self, "cgroup_parent", value)
1414
+
1343
1415
  @property
1344
1416
  @pulumi.getter(name="cgroupnsMode")
1345
1417
  def cgroupns_mode(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -1388,6 +1460,30 @@ class _ContainerState:
1388
1460
  def container_read_refresh_timeout_milliseconds(self, value: Optional[pulumi.Input[builtins.int]]):
1389
1461
  pulumi.set(self, "container_read_refresh_timeout_milliseconds", value)
1390
1462
 
1463
+ @property
1464
+ @pulumi.getter(name="cpuPeriod")
1465
+ def cpu_period(self) -> Optional[pulumi.Input[builtins.int]]:
1466
+ """
1467
+ Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
1468
+ """
1469
+ return pulumi.get(self, "cpu_period")
1470
+
1471
+ @cpu_period.setter
1472
+ def cpu_period(self, value: Optional[pulumi.Input[builtins.int]]):
1473
+ pulumi.set(self, "cpu_period", value)
1474
+
1475
+ @property
1476
+ @pulumi.getter(name="cpuQuota")
1477
+ def cpu_quota(self) -> Optional[pulumi.Input[builtins.int]]:
1478
+ """
1479
+ Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
1480
+ """
1481
+ return pulumi.get(self, "cpu_quota")
1482
+
1483
+ @cpu_quota.setter
1484
+ def cpu_quota(self, value: Optional[pulumi.Input[builtins.int]]):
1485
+ pulumi.set(self, "cpu_quota", value)
1486
+
1391
1487
  @property
1392
1488
  @pulumi.getter(name="cpuSet")
1393
1489
  def cpu_set(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -1416,7 +1512,7 @@ class _ContainerState:
1416
1512
  @pulumi.getter
1417
1513
  def cpus(self) -> Optional[pulumi.Input[builtins.str]]:
1418
1514
  """
1419
- Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
1515
+ Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
1420
1516
  """
1421
1517
  return pulumi.get(self, "cpus")
1422
1518
 
@@ -2114,9 +2210,12 @@ class Container(pulumi.CustomResource):
2114
2210
  opts: Optional[pulumi.ResourceOptions] = None,
2115
2211
  attach: Optional[pulumi.Input[builtins.bool]] = None,
2116
2212
  capabilities: Optional[pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']]] = None,
2213
+ cgroup_parent: Optional[pulumi.Input[builtins.str]] = None,
2117
2214
  cgroupns_mode: Optional[pulumi.Input[builtins.str]] = None,
2118
2215
  command: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
2119
2216
  container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
2217
+ cpu_period: Optional[pulumi.Input[builtins.int]] = None,
2218
+ cpu_quota: Optional[pulumi.Input[builtins.int]] = None,
2120
2219
  cpu_set: Optional[pulumi.Input[builtins.str]] = None,
2121
2220
  cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
2122
2221
  cpus: Optional[pulumi.Input[builtins.str]] = None,
@@ -2240,12 +2339,15 @@ class Container(pulumi.CustomResource):
2240
2339
  :param pulumi.ResourceOptions opts: Options for the resource.
2241
2340
  :param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
2242
2341
  :param pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']] capabilities: Add or drop certrain linux capabilities.
2342
+ :param pulumi.Input[builtins.str] cgroup_parent: Optional parent cgroup for the container
2243
2343
  :param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
2244
2344
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: 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","-f","baz.conf"]`.
2245
2345
  :param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
2346
+ :param pulumi.Input[builtins.int] cpu_period: Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
2347
+ :param pulumi.Input[builtins.int] cpu_quota: Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
2246
2348
  :param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
2247
2349
  :param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
2248
- :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
2350
+ :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
2249
2351
  :param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
2250
2352
  :param pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]] devices: Bind devices to the container.
2251
2353
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
@@ -2384,9 +2486,12 @@ class Container(pulumi.CustomResource):
2384
2486
  opts: Optional[pulumi.ResourceOptions] = None,
2385
2487
  attach: Optional[pulumi.Input[builtins.bool]] = None,
2386
2488
  capabilities: Optional[pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']]] = None,
2489
+ cgroup_parent: Optional[pulumi.Input[builtins.str]] = None,
2387
2490
  cgroupns_mode: Optional[pulumi.Input[builtins.str]] = None,
2388
2491
  command: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
2389
2492
  container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
2493
+ cpu_period: Optional[pulumi.Input[builtins.int]] = None,
2494
+ cpu_quota: Optional[pulumi.Input[builtins.int]] = None,
2390
2495
  cpu_set: Optional[pulumi.Input[builtins.str]] = None,
2391
2496
  cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
2392
2497
  cpus: Optional[pulumi.Input[builtins.str]] = None,
@@ -2456,9 +2561,12 @@ class Container(pulumi.CustomResource):
2456
2561
 
2457
2562
  __props__.__dict__["attach"] = attach
2458
2563
  __props__.__dict__["capabilities"] = capabilities
2564
+ __props__.__dict__["cgroup_parent"] = cgroup_parent
2459
2565
  __props__.__dict__["cgroupns_mode"] = cgroupns_mode
2460
2566
  __props__.__dict__["command"] = command
2461
2567
  __props__.__dict__["container_read_refresh_timeout_milliseconds"] = container_read_refresh_timeout_milliseconds
2568
+ __props__.__dict__["cpu_period"] = cpu_period
2569
+ __props__.__dict__["cpu_quota"] = cpu_quota
2462
2570
  __props__.__dict__["cpu_set"] = cpu_set
2463
2571
  __props__.__dict__["cpu_shares"] = cpu_shares
2464
2572
  __props__.__dict__["cpus"] = cpus
@@ -2536,10 +2644,13 @@ class Container(pulumi.CustomResource):
2536
2644
  attach: Optional[pulumi.Input[builtins.bool]] = None,
2537
2645
  bridge: Optional[pulumi.Input[builtins.str]] = None,
2538
2646
  capabilities: Optional[pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']]] = None,
2647
+ cgroup_parent: Optional[pulumi.Input[builtins.str]] = None,
2539
2648
  cgroupns_mode: Optional[pulumi.Input[builtins.str]] = None,
2540
2649
  command: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
2541
2650
  container_logs: Optional[pulumi.Input[builtins.str]] = None,
2542
2651
  container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
2652
+ cpu_period: Optional[pulumi.Input[builtins.int]] = None,
2653
+ cpu_quota: Optional[pulumi.Input[builtins.int]] = None,
2543
2654
  cpu_set: Optional[pulumi.Input[builtins.str]] = None,
2544
2655
  cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
2545
2656
  cpus: Optional[pulumi.Input[builtins.str]] = None,
@@ -2610,13 +2721,16 @@ class Container(pulumi.CustomResource):
2610
2721
  :param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
2611
2722
  :param pulumi.Input[builtins.str] bridge: The network bridge of the container as read from its NetworkSettings.
2612
2723
  :param pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']] capabilities: Add or drop certrain linux capabilities.
2724
+ :param pulumi.Input[builtins.str] cgroup_parent: Optional parent cgroup for the container
2613
2725
  :param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
2614
2726
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: 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","-f","baz.conf"]`.
2615
2727
  :param pulumi.Input[builtins.str] container_logs: The logs of the container if its execution is done (`attach` must be disabled).
2616
2728
  :param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
2729
+ :param pulumi.Input[builtins.int] cpu_period: Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
2730
+ :param pulumi.Input[builtins.int] cpu_quota: Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
2617
2731
  :param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
2618
2732
  :param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
2619
- :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
2733
+ :param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
2620
2734
  :param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
2621
2735
  :param pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]] devices: Bind devices to the container.
2622
2736
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
@@ -2681,10 +2795,13 @@ class Container(pulumi.CustomResource):
2681
2795
  __props__.__dict__["attach"] = attach
2682
2796
  __props__.__dict__["bridge"] = bridge
2683
2797
  __props__.__dict__["capabilities"] = capabilities
2798
+ __props__.__dict__["cgroup_parent"] = cgroup_parent
2684
2799
  __props__.__dict__["cgroupns_mode"] = cgroupns_mode
2685
2800
  __props__.__dict__["command"] = command
2686
2801
  __props__.__dict__["container_logs"] = container_logs
2687
2802
  __props__.__dict__["container_read_refresh_timeout_milliseconds"] = container_read_refresh_timeout_milliseconds
2803
+ __props__.__dict__["cpu_period"] = cpu_period
2804
+ __props__.__dict__["cpu_quota"] = cpu_quota
2688
2805
  __props__.__dict__["cpu_set"] = cpu_set
2689
2806
  __props__.__dict__["cpu_shares"] = cpu_shares
2690
2807
  __props__.__dict__["cpus"] = cpus
@@ -2771,6 +2888,14 @@ class Container(pulumi.CustomResource):
2771
2888
  """
2772
2889
  return pulumi.get(self, "capabilities")
2773
2890
 
2891
+ @property
2892
+ @pulumi.getter(name="cgroupParent")
2893
+ def cgroup_parent(self) -> pulumi.Output[Optional[builtins.str]]:
2894
+ """
2895
+ Optional parent cgroup for the container
2896
+ """
2897
+ return pulumi.get(self, "cgroup_parent")
2898
+
2774
2899
  @property
2775
2900
  @pulumi.getter(name="cgroupnsMode")
2776
2901
  def cgroupns_mode(self) -> pulumi.Output[Optional[builtins.str]]:
@@ -2803,6 +2928,22 @@ class Container(pulumi.CustomResource):
2803
2928
  """
2804
2929
  return pulumi.get(self, "container_read_refresh_timeout_milliseconds")
2805
2930
 
2931
+ @property
2932
+ @pulumi.getter(name="cpuPeriod")
2933
+ def cpu_period(self) -> pulumi.Output[Optional[builtins.int]]:
2934
+ """
2935
+ Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set.
2936
+ """
2937
+ return pulumi.get(self, "cpu_period")
2938
+
2939
+ @property
2940
+ @pulumi.getter(name="cpuQuota")
2941
+ def cpu_quota(self) -> pulumi.Output[Optional[builtins.int]]:
2942
+ """
2943
+ Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set.
2944
+ """
2945
+ return pulumi.get(self, "cpu_quota")
2946
+
2806
2947
  @property
2807
2948
  @pulumi.getter(name="cpuSet")
2808
2949
  def cpu_set(self) -> pulumi.Output[Optional[builtins.str]]:
@@ -2823,7 +2964,7 @@ class Container(pulumi.CustomResource):
2823
2964
  @pulumi.getter
2824
2965
  def cpus(self) -> pulumi.Output[Optional[builtins.str]]:
2825
2966
  """
2826
- Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
2967
+ Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpu_period` and `cpu_quota`.
2827
2968
  """
2828
2969
  return pulumi.get(self, "cpus")
2829
2970
 
@@ -61,7 +61,7 @@ class GetRegistryImageResult:
61
61
  @pulumi.getter
62
62
  def name(self) -> builtins.str:
63
63
  """
64
- The name of the Docker image, including any tags. e.g. `alpine:latest`
64
+ The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`.
65
65
  """
66
66
  return pulumi.get(self, "name")
67
67
 
@@ -106,7 +106,7 @@ def get_registry_image(insecure_skip_verify: Optional[builtins.bool] = None,
106
106
 
107
107
 
108
108
  :param builtins.bool insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
109
- :param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`
109
+ :param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`.
110
110
  """
111
111
  __args__ = dict()
112
112
  __args__['insecureSkipVerify'] = insecure_skip_verify
@@ -139,7 +139,7 @@ def get_registry_image_output(insecure_skip_verify: Optional[pulumi.Input[Option
139
139
 
140
140
 
141
141
  :param builtins.bool insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
142
- :param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`
142
+ :param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`.
143
143
  """
144
144
  __args__ = dict()
145
145
  __args__['insecureSkipVerify'] = insecure_skip_verify