the-moby-effect 1.45.0-alpha.2 → 1.45.0-alpha.4

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.
@@ -2454,18 +2454,18 @@ declare const Resources_base: Schema.Class<Resources, {
2454
2454
  * An integer value representing this container's relative CPU weight versus
2455
2455
  * other containers.
2456
2456
  */
2457
- CpuShares: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2457
+ CpuShares: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2458
2458
  /** Memory limit in bytes. */
2459
- Memory: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2459
+ Memory: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2460
2460
  /**
2461
2461
  * Path to `cgroups` under which the container's `cgroup` is created. If the
2462
2462
  * path is not absolute, the path is considered to be relative to the
2463
2463
  * `cgroups` path of the init process. Cgroups are created if they do not
2464
2464
  * already exist.
2465
2465
  */
2466
- CgroupParent: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
2466
+ CgroupParent: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
2467
2467
  /** Block IO weight (relative weight). */
2468
- BlkioWeight: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2468
+ BlkioWeight: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2469
2469
  /**
2470
2470
  * Block IO weight (relative device weight) in the form:
2471
2471
  *
@@ -2515,26 +2515,26 @@ declare const Resources_base: Schema.Class<Resources, {
2515
2515
  readonly Rate?: number | undefined;
2516
2516
  } | null)[] | null | undefined, never>;
2517
2517
  /** The length of a CPU period in microseconds. */
2518
- CpuPeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2518
+ CpuPeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2519
2519
  /** Microseconds of CPU time that the container can get in a CPU period. */
2520
- CpuQuota: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2520
+ CpuQuota: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2521
2521
  /**
2522
2522
  * The length of a CPU real-time period in microseconds. Set to 0 to
2523
2523
  * allocate no time allocated to real-time tasks.
2524
2524
  */
2525
- CpuRealtimePeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2525
+ CpuRealtimePeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2526
2526
  /**
2527
2527
  * The length of a CPU real-time runtime in microseconds. Set to 0 to
2528
2528
  * allocate no time allocated to real-time tasks.
2529
2529
  */
2530
- CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2530
+ CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2531
2531
  /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */
2532
- CpusetCpus: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
2532
+ CpusetCpus: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
2533
2533
  /**
2534
2534
  * Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only
2535
2535
  * effective on NUMA systems.
2536
2536
  */
2537
- CpusetMems: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
2537
+ CpusetMems: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
2538
2538
  /** A list of devices to add to the container. */
2539
2539
  Devices: Schema.PropertySignature<"?:", readonly (DeviceMapping | null)[] | null | undefined, never, "?:", readonly ({
2540
2540
  readonly PathOnHost?: string | undefined;
@@ -2560,31 +2560,31 @@ declare const Resources_base: Schema.Class<Resources, {
2560
2560
  *
2561
2561
  * This field is omitted when empty.
2562
2562
  */
2563
- KernelMemoryTCP: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2563
+ KernelMemoryTCP: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2564
2564
  /** Memory soft limit in bytes. */
2565
- MemoryReservation: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2565
+ MemoryReservation: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2566
2566
  /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */
2567
- MemorySwap: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2567
+ MemorySwap: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2568
2568
  /**
2569
2569
  * Tune a container's memory swappiness behavior. Accepts an integer between
2570
2570
  * 0 and 100.
2571
2571
  */
2572
- MemorySwappiness: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2572
+ MemorySwappiness: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2573
2573
  /** CPU quota in units of 10<sup>-9</sup> CPUs. */
2574
- NanoCpus: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2574
+ NanoCpus: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2575
2575
  /** Disable OOM Killer for the container. */
2576
- OomKillDisable: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
2576
+ OomKillDisable: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
2577
2577
  /**
2578
2578
  * Run an init inside the container that forwards signals and reaps
2579
2579
  * processes. This field is omitted if empty, and the default (as configured
2580
2580
  * on the daemon) is used.
2581
2581
  */
2582
- Init: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
2582
+ Init: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
2583
2583
  /**
2584
2584
  * Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
2585
2585
  * to not change.
2586
2586
  */
2587
- PidsLimit: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2587
+ PidsLimit: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2588
2588
  /**
2589
2589
  * A list of resource limits to set in the container. For example:
2590
2590
  *
@@ -2606,7 +2606,7 @@ declare const Resources_base: Schema.Class<Resources, {
2606
2606
  * mutually exclusive. The order of precedence is `CPUCount` first, then
2607
2607
  * `CPUShares`, and `CPUPercent` last.
2608
2608
  */
2609
- CpuCount: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2609
+ CpuCount: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2610
2610
  /**
2611
2611
  * The usable percentage of the available CPUs (Windows only).
2612
2612
  *
@@ -2614,19 +2614,19 @@ declare const Resources_base: Schema.Class<Resources, {
2614
2614
  * mutually exclusive. The order of precedence is `CPUCount` first, then
2615
2615
  * `CPUShares`, and `CPUPercent` last.
2616
2616
  */
2617
- CpuPercent: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2617
+ CpuPercent: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2618
2618
  /** Maximum IOps for the container system drive (Windows only) */
2619
- IOMaximumIOps: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2619
+ IOMaximumIOps: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2620
2620
  /**
2621
2621
  * Maximum IO in bytes per second for the container system drive (Windows
2622
2622
  * only).
2623
2623
  */
2624
- IOMaximumBandwidth: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
2624
+ IOMaximumBandwidth: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
2625
2625
  }, {
2626
- readonly CpuShares?: number | undefined;
2627
- readonly Memory?: number | undefined;
2628
- readonly CgroupParent?: string | undefined;
2629
- readonly BlkioWeight?: number | undefined;
2626
+ readonly CpuShares?: number | null | undefined;
2627
+ readonly Memory?: number | null | undefined;
2628
+ readonly CgroupParent?: string | null | undefined;
2629
+ readonly BlkioWeight?: number | null | undefined;
2630
2630
  readonly BlkioWeightDevice?: readonly ({
2631
2631
  readonly Path?: string | undefined;
2632
2632
  readonly Weight?: number | undefined;
@@ -2635,37 +2635,37 @@ declare const Resources_base: Schema.Class<Resources, {
2635
2635
  readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
2636
2636
  readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
2637
2637
  readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
2638
- readonly CpuPeriod?: number | undefined;
2639
- readonly CpuQuota?: number | undefined;
2640
- readonly CpuRealtimePeriod?: number | undefined;
2641
- readonly CpuRealtimeRuntime?: number | undefined;
2642
- readonly CpusetCpus?: string | undefined;
2643
- readonly CpusetMems?: string | undefined;
2638
+ readonly CpuPeriod?: number | null | undefined;
2639
+ readonly CpuQuota?: number | null | undefined;
2640
+ readonly CpuRealtimePeriod?: number | null | undefined;
2641
+ readonly CpuRealtimeRuntime?: number | null | undefined;
2642
+ readonly CpusetCpus?: string | null | undefined;
2643
+ readonly CpusetMems?: string | null | undefined;
2644
2644
  readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
2645
2645
  readonly DeviceCgroupRules?: readonly string[] | null | undefined;
2646
2646
  readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
2647
- readonly KernelMemoryTCP?: number | undefined;
2648
- readonly MemoryReservation?: number | undefined;
2649
- readonly MemorySwap?: number | undefined;
2650
- readonly MemorySwappiness?: number | undefined;
2651
- readonly NanoCpus?: number | undefined;
2652
- readonly OomKillDisable?: boolean | undefined;
2653
- readonly Init?: boolean | undefined;
2654
- readonly PidsLimit?: number | undefined;
2647
+ readonly KernelMemoryTCP?: number | null | undefined;
2648
+ readonly MemoryReservation?: number | null | undefined;
2649
+ readonly MemorySwap?: number | null | undefined;
2650
+ readonly MemorySwappiness?: number | null | undefined;
2651
+ readonly NanoCpus?: number | null | undefined;
2652
+ readonly OomKillDisable?: boolean | null | undefined;
2653
+ readonly Init?: boolean | null | undefined;
2654
+ readonly PidsLimit?: number | null | undefined;
2655
2655
  readonly Ulimits?: readonly ({
2656
2656
  readonly Name?: string | undefined;
2657
2657
  readonly Soft?: number | undefined;
2658
2658
  readonly Hard?: number | undefined;
2659
2659
  } | null)[] | null | undefined;
2660
- readonly CpuCount?: number | undefined;
2661
- readonly CpuPercent?: number | undefined;
2662
- readonly IOMaximumIOps?: number | undefined;
2663
- readonly IOMaximumBandwidth?: number | undefined;
2664
- }, {
2665
- readonly CpuShares?: number | undefined;
2666
- readonly Memory?: number | undefined;
2667
- readonly CgroupParent?: string | undefined;
2668
- readonly BlkioWeight?: number | undefined;
2660
+ readonly CpuCount?: number | null | undefined;
2661
+ readonly CpuPercent?: number | null | undefined;
2662
+ readonly IOMaximumIOps?: number | null | undefined;
2663
+ readonly IOMaximumBandwidth?: number | null | undefined;
2664
+ }, {
2665
+ readonly CpuShares?: number | null | undefined;
2666
+ readonly Memory?: number | null | undefined;
2667
+ readonly CgroupParent?: string | null | undefined;
2668
+ readonly BlkioWeight?: number | null | undefined;
2669
2669
  readonly BlkioWeightDevice?: readonly ({
2670
2670
  readonly Path?: string | undefined;
2671
2671
  readonly Weight?: number | undefined;
@@ -2686,12 +2686,12 @@ declare const Resources_base: Schema.Class<Resources, {
2686
2686
  readonly Path?: string | undefined;
2687
2687
  readonly Rate?: number | undefined;
2688
2688
  } | null)[] | null | undefined;
2689
- readonly CpuPeriod?: number | undefined;
2690
- readonly CpuQuota?: number | undefined;
2691
- readonly CpuRealtimePeriod?: number | undefined;
2692
- readonly CpuRealtimeRuntime?: number | undefined;
2693
- readonly CpusetCpus?: string | undefined;
2694
- readonly CpusetMems?: string | undefined;
2689
+ readonly CpuPeriod?: number | null | undefined;
2690
+ readonly CpuQuota?: number | null | undefined;
2691
+ readonly CpuRealtimePeriod?: number | null | undefined;
2692
+ readonly CpuRealtimeRuntime?: number | null | undefined;
2693
+ readonly CpusetCpus?: string | null | undefined;
2694
+ readonly CpusetMems?: string | null | undefined;
2695
2695
  readonly Devices?: readonly ({
2696
2696
  readonly PathOnHost?: string | undefined;
2697
2697
  readonly PathInContainer?: string | undefined;
@@ -2707,28 +2707,28 @@ declare const Resources_base: Schema.Class<Resources, {
2707
2707
  readonly [x: string]: string;
2708
2708
  } | null | undefined;
2709
2709
  } | null)[] | null | undefined;
2710
- readonly KernelMemoryTCP?: number | undefined;
2711
- readonly MemoryReservation?: number | undefined;
2712
- readonly MemorySwap?: number | undefined;
2713
- readonly MemorySwappiness?: number | undefined;
2714
- readonly NanoCpus?: number | undefined;
2715
- readonly OomKillDisable?: boolean | undefined;
2716
- readonly Init?: boolean | undefined;
2717
- readonly PidsLimit?: number | undefined;
2710
+ readonly KernelMemoryTCP?: number | null | undefined;
2711
+ readonly MemoryReservation?: number | null | undefined;
2712
+ readonly MemorySwap?: number | null | undefined;
2713
+ readonly MemorySwappiness?: number | null | undefined;
2714
+ readonly NanoCpus?: number | null | undefined;
2715
+ readonly OomKillDisable?: boolean | null | undefined;
2716
+ readonly Init?: boolean | null | undefined;
2717
+ readonly PidsLimit?: number | null | undefined;
2718
2718
  readonly Ulimits?: readonly ({
2719
2719
  readonly Name?: string | undefined;
2720
2720
  readonly Soft?: number | undefined;
2721
2721
  readonly Hard?: number | undefined;
2722
2722
  } | null)[] | null | undefined;
2723
- readonly CpuCount?: number | undefined;
2724
- readonly CpuPercent?: number | undefined;
2725
- readonly IOMaximumIOps?: number | undefined;
2726
- readonly IOMaximumBandwidth?: number | undefined;
2723
+ readonly CpuCount?: number | null | undefined;
2724
+ readonly CpuPercent?: number | null | undefined;
2725
+ readonly IOMaximumIOps?: number | null | undefined;
2726
+ readonly IOMaximumBandwidth?: number | null | undefined;
2727
2727
  }, never, {
2728
- readonly CpuShares?: number | undefined;
2729
- readonly Memory?: number | undefined;
2730
- readonly CgroupParent?: string | undefined;
2731
- readonly BlkioWeight?: number | undefined;
2728
+ readonly CpuShares?: number | null | undefined;
2729
+ readonly Memory?: number | null | undefined;
2730
+ readonly CgroupParent?: string | null | undefined;
2731
+ readonly BlkioWeight?: number | null | undefined;
2732
2732
  readonly BlkioWeightDevice?: readonly ({
2733
2733
  readonly Path?: string | undefined;
2734
2734
  readonly Weight?: number | undefined;
@@ -2737,32 +2737,32 @@ declare const Resources_base: Schema.Class<Resources, {
2737
2737
  readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
2738
2738
  readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
2739
2739
  readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
2740
- readonly CpuPeriod?: number | undefined;
2741
- readonly CpuQuota?: number | undefined;
2742
- readonly CpuRealtimePeriod?: number | undefined;
2743
- readonly CpuRealtimeRuntime?: number | undefined;
2744
- readonly CpusetCpus?: string | undefined;
2745
- readonly CpusetMems?: string | undefined;
2740
+ readonly CpuPeriod?: number | null | undefined;
2741
+ readonly CpuQuota?: number | null | undefined;
2742
+ readonly CpuRealtimePeriod?: number | null | undefined;
2743
+ readonly CpuRealtimeRuntime?: number | null | undefined;
2744
+ readonly CpusetCpus?: string | null | undefined;
2745
+ readonly CpusetMems?: string | null | undefined;
2746
2746
  readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
2747
2747
  readonly DeviceCgroupRules?: readonly string[] | null | undefined;
2748
2748
  readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
2749
- readonly KernelMemoryTCP?: number | undefined;
2750
- readonly MemoryReservation?: number | undefined;
2751
- readonly MemorySwap?: number | undefined;
2752
- readonly MemorySwappiness?: number | undefined;
2753
- readonly NanoCpus?: number | undefined;
2754
- readonly OomKillDisable?: boolean | undefined;
2755
- readonly Init?: boolean | undefined;
2756
- readonly PidsLimit?: number | undefined;
2749
+ readonly KernelMemoryTCP?: number | null | undefined;
2750
+ readonly MemoryReservation?: number | null | undefined;
2751
+ readonly MemorySwap?: number | null | undefined;
2752
+ readonly MemorySwappiness?: number | null | undefined;
2753
+ readonly NanoCpus?: number | null | undefined;
2754
+ readonly OomKillDisable?: boolean | null | undefined;
2755
+ readonly Init?: boolean | null | undefined;
2756
+ readonly PidsLimit?: number | null | undefined;
2757
2757
  readonly Ulimits?: readonly ({
2758
2758
  readonly Name?: string | undefined;
2759
2759
  readonly Soft?: number | undefined;
2760
2760
  readonly Hard?: number | undefined;
2761
2761
  } | null)[] | null | undefined;
2762
- readonly CpuCount?: number | undefined;
2763
- readonly CpuPercent?: number | undefined;
2764
- readonly IOMaximumIOps?: number | undefined;
2765
- readonly IOMaximumBandwidth?: number | undefined;
2762
+ readonly CpuCount?: number | null | undefined;
2763
+ readonly CpuPercent?: number | null | undefined;
2764
+ readonly IOMaximumIOps?: number | null | undefined;
2765
+ readonly IOMaximumBandwidth?: number | null | undefined;
2766
2766
  }, {}, {}>;
2767
2767
  /** @since 1.45.0 */
2768
2768
  export declare class Resources extends Resources_base {
@@ -4649,23 +4649,23 @@ export declare enum HostConfig_1_Isolation {
4649
4649
  "PROCESS" = "process",
4650
4650
  "HYPERV" = "hyperv"
4651
4651
  }
4652
- declare const HostConfig_0_base: Schema.Class<HostConfig_0, {
4652
+ declare const HostConfig_base: Schema.Class<HostConfig, {
4653
4653
  /**
4654
4654
  * An integer value representing this container's relative CPU weight versus
4655
4655
  * other containers.
4656
4656
  */
4657
- CpuShares: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4657
+ CpuShares: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4658
4658
  /** Memory limit in bytes. */
4659
- Memory: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4659
+ Memory: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4660
4660
  /**
4661
4661
  * Path to `cgroups` under which the container's `cgroup` is created. If the
4662
4662
  * path is not absolute, the path is considered to be relative to the
4663
4663
  * `cgroups` path of the init process. Cgroups are created if they do not
4664
4664
  * already exist.
4665
4665
  */
4666
- CgroupParent: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
4666
+ CgroupParent: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
4667
4667
  /** Block IO weight (relative weight). */
4668
- BlkioWeight: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4668
+ BlkioWeight: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4669
4669
  /**
4670
4670
  * Block IO weight (relative device weight) in the form:
4671
4671
  *
@@ -4715,727 +4715,114 @@ declare const HostConfig_0_base: Schema.Class<HostConfig_0, {
4715
4715
  readonly Rate?: number | undefined;
4716
4716
  } | null)[] | null | undefined, never>;
4717
4717
  /** The length of a CPU period in microseconds. */
4718
- CpuPeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4718
+ CpuPeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4719
4719
  /** Microseconds of CPU time that the container can get in a CPU period. */
4720
- CpuQuota: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4720
+ CpuQuota: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4721
4721
  /**
4722
4722
  * The length of a CPU real-time period in microseconds. Set to 0 to
4723
4723
  * allocate no time allocated to real-time tasks.
4724
4724
  */
4725
- CpuRealtimePeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4725
+ CpuRealtimePeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4726
4726
  /**
4727
4727
  * The length of a CPU real-time runtime in microseconds. Set to 0 to
4728
4728
  * allocate no time allocated to real-time tasks.
4729
4729
  */
4730
- CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4730
+ CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4731
4731
  /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */
4732
- CpusetCpus: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
4732
+ CpusetCpus: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
4733
4733
  /**
4734
4734
  * Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only
4735
4735
  * effective on NUMA systems.
4736
4736
  */
4737
- CpusetMems: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
4737
+ CpusetMems: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
4738
4738
  /** A list of devices to add to the container. */
4739
4739
  Devices: Schema.PropertySignature<"?:", readonly (DeviceMapping | null)[] | null | undefined, never, "?:", readonly ({
4740
4740
  readonly PathOnHost?: string | undefined;
4741
4741
  readonly PathInContainer?: string | undefined;
4742
4742
  readonly CgroupPermissions?: string | undefined;
4743
- } | null)[] | null | undefined, never>;
4744
- /** A list of cgroup rules to apply to the container */
4745
- DeviceCgroupRules: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
4746
- /** A list of requests for devices to be sent to device drivers. */
4747
- DeviceRequests: Schema.PropertySignature<"?:", readonly (DeviceRequest | null)[] | null | undefined, never, "?:", readonly ({
4748
- readonly Driver?: string | undefined;
4749
- readonly Count?: number | undefined;
4750
- readonly DeviceIDs?: readonly string[] | null | undefined;
4751
- readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
4752
- readonly Options?: {
4753
- readonly [x: string]: string;
4754
- } | null | undefined;
4755
- } | null)[] | null | undefined, never>;
4756
- /**
4757
- * Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI
4758
- * runtime in use, this option may be ignored. It is no longer supported by
4759
- * the default (runc) runtime.
4760
- *
4761
- * This field is omitted when empty.
4762
- */
4763
- KernelMemoryTCP: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4764
- /** Memory soft limit in bytes. */
4765
- MemoryReservation: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4766
- /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */
4767
- MemorySwap: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4768
- /**
4769
- * Tune a container's memory swappiness behavior. Accepts an integer between
4770
- * 0 and 100.
4771
- */
4772
- MemorySwappiness: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4773
- /** CPU quota in units of 10<sup>-9</sup> CPUs. */
4774
- NanoCpus: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4775
- /** Disable OOM Killer for the container. */
4776
- OomKillDisable: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
4777
- /**
4778
- * Run an init inside the container that forwards signals and reaps
4779
- * processes. This field is omitted if empty, and the default (as configured
4780
- * on the daemon) is used.
4781
- */
4782
- Init: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
4783
- /**
4784
- * Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
4785
- * to not change.
4786
- */
4787
- PidsLimit: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4788
- /**
4789
- * A list of resource limits to set in the container. For example:
4790
- *
4791
- * { "Name": "nofile", "Soft": 1024, "Hard": 2048 }
4792
- */
4793
- Ulimits: Schema.PropertySignature<"?:", readonly ({
4794
- readonly Name?: string | undefined;
4795
- readonly Soft?: number | undefined;
4796
- readonly Hard?: number | undefined;
4797
- } | null)[] | null | undefined, never, "?:", readonly ({
4798
- readonly Name?: string | undefined;
4799
- readonly Soft?: number | undefined;
4800
- readonly Hard?: number | undefined;
4801
- } | null)[] | null | undefined, never>;
4802
- /**
4803
- * The number of usable CPUs (Windows only).
4804
- *
4805
- * On Windows Server containers, the processor resource controls are
4806
- * mutually exclusive. The order of precedence is `CPUCount` first, then
4807
- * `CPUShares`, and `CPUPercent` last.
4808
- */
4809
- CpuCount: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4810
- /**
4811
- * The usable percentage of the available CPUs (Windows only).
4812
- *
4813
- * On Windows Server containers, the processor resource controls are
4814
- * mutually exclusive. The order of precedence is `CPUCount` first, then
4815
- * `CPUShares`, and `CPUPercent` last.
4816
- */
4817
- CpuPercent: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4818
- /** Maximum IOps for the container system drive (Windows only) */
4819
- IOMaximumIOps: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4820
- /**
4821
- * Maximum IO in bytes per second for the container system drive (Windows
4822
- * only).
4823
- */
4824
- IOMaximumBandwidth: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
4825
- }, {
4826
- readonly CpuShares?: number | undefined;
4827
- readonly Memory?: number | undefined;
4828
- readonly CgroupParent?: string | undefined;
4829
- readonly BlkioWeight?: number | undefined;
4830
- readonly BlkioWeightDevice?: readonly ({
4831
- readonly Path?: string | undefined;
4832
- readonly Weight?: number | undefined;
4833
- } | null)[] | null | undefined;
4834
- readonly BlkioDeviceReadBps?: readonly (ThrottleDevice | null)[] | null | undefined;
4835
- readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
4836
- readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
4837
- readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
4838
- readonly CpuPeriod?: number | undefined;
4839
- readonly CpuQuota?: number | undefined;
4840
- readonly CpuRealtimePeriod?: number | undefined;
4841
- readonly CpuRealtimeRuntime?: number | undefined;
4842
- readonly CpusetCpus?: string | undefined;
4843
- readonly CpusetMems?: string | undefined;
4844
- readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
4845
- readonly DeviceCgroupRules?: readonly string[] | null | undefined;
4846
- readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
4847
- readonly KernelMemoryTCP?: number | undefined;
4848
- readonly MemoryReservation?: number | undefined;
4849
- readonly MemorySwap?: number | undefined;
4850
- readonly MemorySwappiness?: number | undefined;
4851
- readonly NanoCpus?: number | undefined;
4852
- readonly OomKillDisable?: boolean | undefined;
4853
- readonly Init?: boolean | undefined;
4854
- readonly PidsLimit?: number | undefined;
4855
- readonly Ulimits?: readonly ({
4856
- readonly Name?: string | undefined;
4857
- readonly Soft?: number | undefined;
4858
- readonly Hard?: number | undefined;
4859
- } | null)[] | null | undefined;
4860
- readonly CpuCount?: number | undefined;
4861
- readonly CpuPercent?: number | undefined;
4862
- readonly IOMaximumIOps?: number | undefined;
4863
- readonly IOMaximumBandwidth?: number | undefined;
4864
- }, {
4865
- readonly CpuShares?: number | undefined;
4866
- readonly Memory?: number | undefined;
4867
- readonly CgroupParent?: string | undefined;
4868
- readonly BlkioWeight?: number | undefined;
4869
- readonly BlkioWeightDevice?: readonly ({
4870
- readonly Path?: string | undefined;
4871
- readonly Weight?: number | undefined;
4872
- } | null)[] | null | undefined;
4873
- readonly BlkioDeviceReadBps?: readonly ({
4874
- readonly Path?: string | undefined;
4875
- readonly Rate?: number | undefined;
4876
- } | null)[] | null | undefined;
4877
- readonly BlkioDeviceWriteBps?: readonly ({
4878
- readonly Path?: string | undefined;
4879
- readonly Rate?: number | undefined;
4880
- } | null)[] | null | undefined;
4881
- readonly BlkioDeviceReadIOps?: readonly ({
4882
- readonly Path?: string | undefined;
4883
- readonly Rate?: number | undefined;
4884
- } | null)[] | null | undefined;
4885
- readonly BlkioDeviceWriteIOps?: readonly ({
4886
- readonly Path?: string | undefined;
4887
- readonly Rate?: number | undefined;
4888
- } | null)[] | null | undefined;
4889
- readonly CpuPeriod?: number | undefined;
4890
- readonly CpuQuota?: number | undefined;
4891
- readonly CpuRealtimePeriod?: number | undefined;
4892
- readonly CpuRealtimeRuntime?: number | undefined;
4893
- readonly CpusetCpus?: string | undefined;
4894
- readonly CpusetMems?: string | undefined;
4895
- readonly Devices?: readonly ({
4896
- readonly PathOnHost?: string | undefined;
4897
- readonly PathInContainer?: string | undefined;
4898
- readonly CgroupPermissions?: string | undefined;
4899
- } | null)[] | null | undefined;
4900
- readonly DeviceCgroupRules?: readonly string[] | null | undefined;
4901
- readonly DeviceRequests?: readonly ({
4902
- readonly Driver?: string | undefined;
4903
- readonly Count?: number | undefined;
4904
- readonly DeviceIDs?: readonly string[] | null | undefined;
4905
- readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
4906
- readonly Options?: {
4907
- readonly [x: string]: string;
4908
- } | null | undefined;
4909
- } | null)[] | null | undefined;
4910
- readonly KernelMemoryTCP?: number | undefined;
4911
- readonly MemoryReservation?: number | undefined;
4912
- readonly MemorySwap?: number | undefined;
4913
- readonly MemorySwappiness?: number | undefined;
4914
- readonly NanoCpus?: number | undefined;
4915
- readonly OomKillDisable?: boolean | undefined;
4916
- readonly Init?: boolean | undefined;
4917
- readonly PidsLimit?: number | undefined;
4918
- readonly Ulimits?: readonly ({
4919
- readonly Name?: string | undefined;
4920
- readonly Soft?: number | undefined;
4921
- readonly Hard?: number | undefined;
4922
- } | null)[] | null | undefined;
4923
- readonly CpuCount?: number | undefined;
4924
- readonly CpuPercent?: number | undefined;
4925
- readonly IOMaximumIOps?: number | undefined;
4926
- readonly IOMaximumBandwidth?: number | undefined;
4927
- }, never, {
4928
- readonly CpuShares?: number | undefined;
4929
- readonly Memory?: number | undefined;
4930
- readonly CgroupParent?: string | undefined;
4931
- readonly BlkioWeight?: number | undefined;
4932
- readonly BlkioWeightDevice?: readonly ({
4933
- readonly Path?: string | undefined;
4934
- readonly Weight?: number | undefined;
4935
- } | null)[] | null | undefined;
4936
- readonly BlkioDeviceReadBps?: readonly (ThrottleDevice | null)[] | null | undefined;
4937
- readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
4938
- readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
4939
- readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
4940
- readonly CpuPeriod?: number | undefined;
4941
- readonly CpuQuota?: number | undefined;
4942
- readonly CpuRealtimePeriod?: number | undefined;
4943
- readonly CpuRealtimeRuntime?: number | undefined;
4944
- readonly CpusetCpus?: string | undefined;
4945
- readonly CpusetMems?: string | undefined;
4946
- readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
4947
- readonly DeviceCgroupRules?: readonly string[] | null | undefined;
4948
- readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
4949
- readonly KernelMemoryTCP?: number | undefined;
4950
- readonly MemoryReservation?: number | undefined;
4951
- readonly MemorySwap?: number | undefined;
4952
- readonly MemorySwappiness?: number | undefined;
4953
- readonly NanoCpus?: number | undefined;
4954
- readonly OomKillDisable?: boolean | undefined;
4955
- readonly Init?: boolean | undefined;
4956
- readonly PidsLimit?: number | undefined;
4957
- readonly Ulimits?: readonly ({
4958
- readonly Name?: string | undefined;
4959
- readonly Soft?: number | undefined;
4960
- readonly Hard?: number | undefined;
4961
- } | null)[] | null | undefined;
4962
- readonly CpuCount?: number | undefined;
4963
- readonly CpuPercent?: number | undefined;
4964
- readonly IOMaximumIOps?: number | undefined;
4965
- readonly IOMaximumBandwidth?: number | undefined;
4966
- }, Resources, {}>;
4967
- /** @since 1.45.0 */
4968
- export declare class HostConfig_0 extends HostConfig_0_base {
4969
- }
4970
- declare const HostConfig_1_base: Schema.Class<HostConfig_1, {
4971
- /**
4972
- * A list of volume bindings for this container. Each volume binding is a
4973
- * string in one of these forms:
4974
- *
4975
- * - `host-src:container-dest[:options]` to bind-mount a host path into the
4976
- * container. Both `host-src`, and `container-dest` must be an _absolute_
4977
- * path.
4978
- * - `volume-name:container-dest[:options]` to bind-mount a volume managed by
4979
- * a volume driver into the container. `container-dest` must be an
4980
- * _absolute_ path.
4981
- *
4982
- * `options` is an optional, comma-delimited list of:
4983
- *
4984
- * - `nocopy` disables automatic copying of data from the container path to
4985
- * the volume. The `nocopy` flag only applies to named volumes.
4986
- * - `[ro|rw]` mounts a volume read-only or read-write, respectively. If
4987
- * omitted or set to `rw`, volumes are mounted read-write.
4988
- * - `[z|Z]` applies SELinux labels to allow or deny multiple containers to
4989
- * read and write to the same volume.
4990
- *
4991
- * - `z`: a _shared_ content label is applied to the content. This label
4992
- * indicates that multiple containers can share the volume content,
4993
- * for both reading and writing.
4994
- * - `Z`: a _private unshared_ label is applied to the content. This label
4995
- * indicates that only the current container can use a private volume.
4996
- * Labeling systems such as SELinux require proper labels to be placed
4997
- * on volume content that is mounted into a container. Without a
4998
- * label, the security system can prevent a container's processes from
4999
- * using the content. By default, the labels set by the host operating
5000
- * system are not modified.
5001
- * - `[[r]shared|[r]slave|[r]private]` specifies mount [propagation
5002
- * behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt).
5003
- * This only applies to bind-mounted volumes, not internal volumes or
5004
- * named volumes. Mount propagation requires the source mount point (the
5005
- * location where the source directory is mounted in the host operating
5006
- * system) to have the correct propagation properties. For shared volumes,
5007
- * the source mount point must be set to `shared`. For slave volumes, the
5008
- * mount must be set to either `shared` or `slave`.
5009
- */
5010
- Binds: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5011
- /** Path to a file where the container ID is written */
5012
- ContainerIDFile: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5013
- /** The logging configuration for this container */
5014
- LogConfig: Schema.PropertySignature<"?:", {
5015
- readonly Type?: HostConfig_1_LogConfig_Type | undefined;
5016
- readonly Config?: {
5017
- readonly [x: string]: string;
5018
- } | null | undefined;
5019
- } | null | undefined, never, "?:", {
5020
- readonly Type?: HostConfig_1_LogConfig_Type | undefined;
5021
- readonly Config?: {
5022
- readonly [x: string]: string;
5023
- } | null | undefined;
5024
- } | null | undefined, never>;
5025
- /**
5026
- * Network mode to use for this container. Supported standard values are:
5027
- * `bridge`, `host`, `none`, and `container:<name|id>`. Any other value is
5028
- * taken as a custom network's name to which this container should connect
5029
- * to.
5030
- */
5031
- NetworkMode: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5032
- PortBindings: Schema.PropertySignature<"?:", {
5033
- readonly [x: string]: readonly (PortBinding | null)[] | null;
5034
- } | null | undefined, never, "?:", {
5035
- readonly [x: string]: readonly ({
5036
- readonly HostIp?: string | undefined;
5037
- readonly HostPort?: string | undefined;
5038
- } | null)[] | null;
5039
- } | null | undefined, never>;
5040
- RestartPolicy: Schema.PropertySignature<"?:", RestartPolicy | null | undefined, never, "?:", {
5041
- readonly Name?: RestartPolicy_Name | undefined;
5042
- readonly MaximumRetryCount?: number | undefined;
5043
- } | null | undefined, never>;
5044
- /**
5045
- * Automatically remove the container when the container's process exits.
5046
- * This has no effect if `RestartPolicy` is set.
5047
- */
5048
- AutoRemove: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
5049
- /** Driver that this container uses to mount volumes. */
5050
- VolumeDriver: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5051
- /**
5052
- * A list of volumes to inherit from another container, specified in the
5053
- * form `<container name>[:<ro|rw>]`.
5054
- */
5055
- VolumesFrom: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5056
- /** Specification for mounts to be added to the container. */
5057
- Mounts: Schema.PropertySignature<"?:", readonly (Mount | null)[] | null | undefined, never, "?:", readonly ({
5058
- readonly Type?: Mount_Type | undefined;
5059
- readonly Source?: string | undefined;
5060
- readonly Target?: string | undefined;
5061
- readonly ReadOnly?: boolean | undefined;
5062
- readonly Consistency?: string | undefined;
5063
- readonly BindOptions?: {
5064
- readonly Propagation?: Mount_BindOptions_Propagation | undefined;
5065
- readonly NonRecursive?: boolean | undefined;
5066
- readonly CreateMountpoint?: boolean | undefined;
5067
- } | null | undefined;
5068
- readonly VolumeOptions?: {
5069
- readonly NoCopy?: boolean | undefined;
5070
- readonly Labels?: {
5071
- readonly [x: string]: string;
5072
- } | null | undefined;
5073
- readonly DriverConfig?: {
5074
- readonly Name?: string | undefined;
5075
- readonly Options?: {
5076
- readonly [x: string]: string;
5077
- } | null | undefined;
5078
- } | null | undefined;
5079
- } | null | undefined;
5080
- readonly TmpfsOptions?: {
5081
- readonly Mode?: number | undefined;
5082
- readonly SizeBytes?: number | undefined;
5083
- } | null | undefined;
5084
- } | null)[] | null | undefined, never>;
5085
- /** Initial console size, as an `[height, width]` array. */
5086
- ConsoleSize: Schema.PropertySignature<"?:", readonly number[] | null | undefined, never, "?:", readonly number[] | null | undefined, never>;
5087
- /**
5088
- * Arbitrary non-identifying metadata attached to container and provided to
5089
- * the runtime when the container is started.
5090
- */
5091
- Annotations: Schema.PropertySignature<"?:", {
5092
- readonly [x: string]: string;
5093
- } | null | undefined, never, "?:", {
5094
- readonly [x: string]: string;
5095
- } | null | undefined, never>;
5096
- /**
5097
- * A list of kernel capabilities to add to the container. Conflicts with
5098
- * option 'Capabilities'.
5099
- */
5100
- CapAdd: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5101
- /**
5102
- * A list of kernel capabilities to drop from the container. Conflicts with
5103
- * option 'Capabilities'.
5104
- */
5105
- CapDrop: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5106
- /**
5107
- * Cgroup namespace mode for the container. Possible values are:
5108
- *
5109
- * - `"private"`: the container runs in its own private cgroup namespace
5110
- * - `"host"`: use the host system's cgroup namespace
5111
- *
5112
- * If not specified, the daemon default is used, which can either be
5113
- * `"private"` or `"host"`, depending on daemon version, kernel support and
5114
- * configuration.
5115
- */
5116
- CgroupnsMode: Schema.PropertySignature<"?:", HostConfig_1_CgroupnsMode | undefined, never, "?:", HostConfig_1_CgroupnsMode | undefined, never>;
5117
- /** A list of DNS servers for the container to use. */
5118
- Dns: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5119
- /** A list of DNS options. */
5120
- DnsOptions: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5121
- /** A list of DNS search domains. */
5122
- DnsSearch: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5123
- /**
5124
- * A list of hostnames/IP mappings to add to the container's `/etc/hosts`
5125
- * file. Specified in the form `["hostname:IP"]`.
5126
- */
5127
- ExtraHosts: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5128
- /** A list of additional groups that the container process will run as. */
5129
- GroupAdd: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5130
- /**
5131
- * IPC sharing mode for the container. Possible values are:
5132
- *
5133
- * - `"none"`: own private IPC namespace, with /dev/shm not mounted
5134
- * - `"private"`: own private IPC namespace
5135
- * - `"shareable"`: own private IPC namespace, with a possibility to share it
5136
- * with other containers
5137
- * - `"container:<name|id>"`: join another (shareable) container's IPC
5138
- * namespace
5139
- * - `"host"`: use the host system's IPC namespace
5140
- *
5141
- * If not specified, daemon default is used, which can either be `"private"`
5142
- * or `"shareable"`, depending on daemon version and configuration.
5143
- */
5144
- IpcMode: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5145
- /** Cgroup to use for the container. */
5146
- Cgroup: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5147
- /** A list of links for the container in the form `container_name:alias`. */
5148
- Links: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5149
- /**
5150
- * An integer value containing the score given to the container in order to
5151
- * tune OOM killer preferences.
5152
- */
5153
- OomScoreAdj: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
5154
- /**
5155
- * Set the PID (Process) Namespace mode for the container. It can be either:
5156
- *
5157
- * - `"container:<name|id>"`: joins another container's PID namespace
5158
- * - `"host"`: use the host's PID namespace inside the container
5159
- */
5160
- PidMode: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5161
- /** Gives the container full access to the host. */
5162
- Privileged: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
5163
- /**
5164
- * Allocates an ephemeral host port for all of a container's exposed ports.
5165
- *
5166
- * Ports are de-allocated when the container stops and allocated when the
5167
- * container starts. The allocated port might be changed when restarting the
5168
- * container.
5169
- *
5170
- * The port is selected from the ephemeral port range that depends on the
5171
- * kernel. For example, on Linux the range is defined by
5172
- * `/proc/sys/net/ipv4/ip_local_port_range`.
5173
- */
5174
- PublishAllPorts: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
5175
- /** Mount the container's root filesystem as read only. */
5176
- ReadonlyRootfs: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
5177
- /**
5178
- * A list of string values to customize labels for MLS systems, such as
5179
- * SELinux.
5180
- */
5181
- SecurityOpt: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5182
- /**
5183
- * Storage driver options for this container, in the form `{"size":
5184
- * "120G"}`.
5185
- */
5186
- StorageOpt: Schema.PropertySignature<"?:", {
5187
- readonly [x: string]: string;
5188
- } | null | undefined, never, "?:", {
5189
- readonly [x: string]: string;
5190
- } | null | undefined, never>;
5191
- /**
5192
- * A map of container directories which should be replaced by tmpfs mounts,
5193
- * and their corresponding mount options. For example:
5194
- *
5195
- * { "/run": "rw,noexec,nosuid,size=65536k" }
5196
- */
5197
- Tmpfs: Schema.PropertySignature<"?:", {
5198
- readonly [x: string]: string;
5199
- } | null | undefined, never, "?:", {
5200
- readonly [x: string]: string;
5201
- } | null | undefined, never>;
5202
- /** UTS namespace to use for the container. */
5203
- UTSMode: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5204
- /**
5205
- * Sets the usernamespace mode for the container when usernamespace
5206
- * remapping option is enabled.
5207
- */
5208
- UsernsMode: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5209
- /** Size of `/dev/shm` in bytes. If omitted, the system uses 64MB. */
5210
- ShmSize: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
5211
- /**
5212
- * A list of kernel parameters (sysctls) to set in the container. For
5213
- * example:
5214
- *
5215
- * { "net.ipv4.ip_forward": "1" }
5216
- */
5217
- Sysctls: Schema.PropertySignature<"?:", {
5218
- readonly [x: string]: string;
5219
- } | null | undefined, never, "?:", {
5220
- readonly [x: string]: string;
5221
- } | null | undefined, never>;
5222
- /** Runtime to use with this container. */
5223
- Runtime: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
5224
- /** Isolation technology of the container. (Windows only) */
5225
- Isolation: Schema.PropertySignature<"?:", HostConfig_1_Isolation | undefined, never, "?:", HostConfig_1_Isolation | undefined, never>;
5226
- /**
5227
- * The list of paths to be masked inside the container (this overrides the
5228
- * default set of paths).
5229
- */
5230
- MaskedPaths: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5231
- /**
5232
- * The list of paths to be set as read-only inside the container (this
5233
- * overrides the default set of paths).
5234
- */
5235
- ReadonlyPaths: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5236
- }, {
5237
- readonly RestartPolicy?: RestartPolicy | null | undefined;
5238
- readonly Runtime?: string | undefined;
5239
- readonly ConsoleSize?: readonly number[] | null | undefined;
5240
- readonly Privileged?: boolean | undefined;
5241
- readonly Links?: readonly string[] | null | undefined;
5242
- readonly Mounts?: readonly (Mount | null)[] | null | undefined;
5243
- readonly Binds?: readonly string[] | null | undefined;
5244
- readonly ContainerIDFile?: string | undefined;
5245
- readonly LogConfig?: {
5246
- readonly Type?: HostConfig_1_LogConfig_Type | undefined;
5247
- readonly Config?: {
5248
- readonly [x: string]: string;
5249
- } | null | undefined;
5250
- } | null | undefined;
5251
- readonly NetworkMode?: string | undefined;
5252
- readonly PortBindings?: {
5253
- readonly [x: string]: readonly (PortBinding | null)[] | null;
5254
- } | null | undefined;
5255
- readonly AutoRemove?: boolean | undefined;
5256
- readonly VolumeDriver?: string | undefined;
5257
- readonly VolumesFrom?: readonly string[] | null | undefined;
5258
- readonly Annotations?: {
5259
- readonly [x: string]: string;
5260
- } | null | undefined;
5261
- readonly CapAdd?: readonly string[] | null | undefined;
5262
- readonly CapDrop?: readonly string[] | null | undefined;
5263
- readonly CgroupnsMode?: HostConfig_1_CgroupnsMode | undefined;
5264
- readonly Dns?: readonly string[] | null | undefined;
5265
- readonly DnsOptions?: readonly string[] | null | undefined;
5266
- readonly DnsSearch?: readonly string[] | null | undefined;
5267
- readonly ExtraHosts?: readonly string[] | null | undefined;
5268
- readonly GroupAdd?: readonly string[] | null | undefined;
5269
- readonly IpcMode?: string | undefined;
5270
- readonly Cgroup?: string | undefined;
5271
- readonly OomScoreAdj?: number | undefined;
5272
- readonly PidMode?: string | undefined;
5273
- readonly PublishAllPorts?: boolean | undefined;
5274
- readonly ReadonlyRootfs?: boolean | undefined;
5275
- readonly SecurityOpt?: readonly string[] | null | undefined;
5276
- readonly StorageOpt?: {
5277
- readonly [x: string]: string;
5278
- } | null | undefined;
5279
- readonly Tmpfs?: {
5280
- readonly [x: string]: string;
5281
- } | null | undefined;
5282
- readonly UTSMode?: string | undefined;
5283
- readonly UsernsMode?: string | undefined;
5284
- readonly ShmSize?: number | undefined;
5285
- readonly Sysctls?: {
5286
- readonly [x: string]: string;
5287
- } | null | undefined;
5288
- readonly Isolation?: HostConfig_1_Isolation | undefined;
5289
- readonly MaskedPaths?: readonly string[] | null | undefined;
5290
- readonly ReadonlyPaths?: readonly string[] | null | undefined;
5291
- }, {
5292
- readonly RestartPolicy?: {
5293
- readonly Name?: RestartPolicy_Name | undefined;
5294
- readonly MaximumRetryCount?: number | undefined;
5295
- } | null | undefined;
5296
- readonly Runtime?: string | undefined;
5297
- readonly ConsoleSize?: readonly number[] | null | undefined;
5298
- readonly Privileged?: boolean | undefined;
5299
- readonly Links?: readonly string[] | null | undefined;
5300
- readonly Mounts?: readonly ({
5301
- readonly Type?: Mount_Type | undefined;
5302
- readonly Source?: string | undefined;
5303
- readonly Target?: string | undefined;
5304
- readonly ReadOnly?: boolean | undefined;
5305
- readonly Consistency?: string | undefined;
5306
- readonly BindOptions?: {
5307
- readonly Propagation?: Mount_BindOptions_Propagation | undefined;
5308
- readonly NonRecursive?: boolean | undefined;
5309
- readonly CreateMountpoint?: boolean | undefined;
5310
- } | null | undefined;
5311
- readonly VolumeOptions?: {
5312
- readonly NoCopy?: boolean | undefined;
5313
- readonly Labels?: {
5314
- readonly [x: string]: string;
5315
- } | null | undefined;
5316
- readonly DriverConfig?: {
5317
- readonly Name?: string | undefined;
5318
- readonly Options?: {
5319
- readonly [x: string]: string;
5320
- } | null | undefined;
5321
- } | null | undefined;
5322
- } | null | undefined;
5323
- readonly TmpfsOptions?: {
5324
- readonly Mode?: number | undefined;
5325
- readonly SizeBytes?: number | undefined;
5326
- } | null | undefined;
5327
- } | null)[] | null | undefined;
5328
- readonly Binds?: readonly string[] | null | undefined;
5329
- readonly ContainerIDFile?: string | undefined;
5330
- readonly LogConfig?: {
5331
- readonly Type?: HostConfig_1_LogConfig_Type | undefined;
5332
- readonly Config?: {
5333
- readonly [x: string]: string;
5334
- } | null | undefined;
5335
- } | null | undefined;
5336
- readonly NetworkMode?: string | undefined;
5337
- readonly PortBindings?: {
5338
- readonly [x: string]: readonly ({
5339
- readonly HostIp?: string | undefined;
5340
- readonly HostPort?: string | undefined;
5341
- } | null)[] | null;
5342
- } | null | undefined;
5343
- readonly AutoRemove?: boolean | undefined;
5344
- readonly VolumeDriver?: string | undefined;
5345
- readonly VolumesFrom?: readonly string[] | null | undefined;
5346
- readonly Annotations?: {
5347
- readonly [x: string]: string;
5348
- } | null | undefined;
5349
- readonly CapAdd?: readonly string[] | null | undefined;
5350
- readonly CapDrop?: readonly string[] | null | undefined;
5351
- readonly CgroupnsMode?: HostConfig_1_CgroupnsMode | undefined;
5352
- readonly Dns?: readonly string[] | null | undefined;
5353
- readonly DnsOptions?: readonly string[] | null | undefined;
5354
- readonly DnsSearch?: readonly string[] | null | undefined;
5355
- readonly ExtraHosts?: readonly string[] | null | undefined;
5356
- readonly GroupAdd?: readonly string[] | null | undefined;
5357
- readonly IpcMode?: string | undefined;
5358
- readonly Cgroup?: string | undefined;
5359
- readonly OomScoreAdj?: number | undefined;
5360
- readonly PidMode?: string | undefined;
5361
- readonly PublishAllPorts?: boolean | undefined;
5362
- readonly ReadonlyRootfs?: boolean | undefined;
5363
- readonly SecurityOpt?: readonly string[] | null | undefined;
5364
- readonly StorageOpt?: {
5365
- readonly [x: string]: string;
5366
- } | null | undefined;
5367
- readonly Tmpfs?: {
5368
- readonly [x: string]: string;
5369
- } | null | undefined;
5370
- readonly UTSMode?: string | undefined;
5371
- readonly UsernsMode?: string | undefined;
5372
- readonly ShmSize?: number | undefined;
5373
- readonly Sysctls?: {
5374
- readonly [x: string]: string;
5375
- } | null | undefined;
5376
- readonly Isolation?: HostConfig_1_Isolation | undefined;
5377
- readonly MaskedPaths?: readonly string[] | null | undefined;
5378
- readonly ReadonlyPaths?: readonly string[] | null | undefined;
5379
- }, never, {
5380
- readonly RestartPolicy?: RestartPolicy | null | undefined;
5381
- readonly Runtime?: string | undefined;
5382
- readonly ConsoleSize?: readonly number[] | null | undefined;
5383
- readonly Privileged?: boolean | undefined;
5384
- readonly Links?: readonly string[] | null | undefined;
5385
- readonly Mounts?: readonly (Mount | null)[] | null | undefined;
5386
- readonly Binds?: readonly string[] | null | undefined;
5387
- readonly ContainerIDFile?: string | undefined;
5388
- readonly LogConfig?: {
5389
- readonly Type?: HostConfig_1_LogConfig_Type | undefined;
5390
- readonly Config?: {
5391
- readonly [x: string]: string;
5392
- } | null | undefined;
5393
- } | null | undefined;
5394
- readonly NetworkMode?: string | undefined;
5395
- readonly PortBindings?: {
5396
- readonly [x: string]: readonly (PortBinding | null)[] | null;
5397
- } | null | undefined;
5398
- readonly AutoRemove?: boolean | undefined;
5399
- readonly VolumeDriver?: string | undefined;
5400
- readonly VolumesFrom?: readonly string[] | null | undefined;
5401
- readonly Annotations?: {
5402
- readonly [x: string]: string;
5403
- } | null | undefined;
5404
- readonly CapAdd?: readonly string[] | null | undefined;
5405
- readonly CapDrop?: readonly string[] | null | undefined;
5406
- readonly CgroupnsMode?: HostConfig_1_CgroupnsMode | undefined;
5407
- readonly Dns?: readonly string[] | null | undefined;
5408
- readonly DnsOptions?: readonly string[] | null | undefined;
5409
- readonly DnsSearch?: readonly string[] | null | undefined;
5410
- readonly ExtraHosts?: readonly string[] | null | undefined;
5411
- readonly GroupAdd?: readonly string[] | null | undefined;
5412
- readonly IpcMode?: string | undefined;
5413
- readonly Cgroup?: string | undefined;
5414
- readonly OomScoreAdj?: number | undefined;
5415
- readonly PidMode?: string | undefined;
5416
- readonly PublishAllPorts?: boolean | undefined;
5417
- readonly ReadonlyRootfs?: boolean | undefined;
5418
- readonly SecurityOpt?: readonly string[] | null | undefined;
5419
- readonly StorageOpt?: {
5420
- readonly [x: string]: string;
5421
- } | null | undefined;
5422
- readonly Tmpfs?: {
5423
- readonly [x: string]: string;
5424
- } | null | undefined;
5425
- readonly UTSMode?: string | undefined;
5426
- readonly UsernsMode?: string | undefined;
5427
- readonly ShmSize?: number | undefined;
5428
- readonly Sysctls?: {
5429
- readonly [x: string]: string;
5430
- } | null | undefined;
5431
- readonly Isolation?: HostConfig_1_Isolation | undefined;
5432
- readonly MaskedPaths?: readonly string[] | null | undefined;
5433
- readonly ReadonlyPaths?: readonly string[] | null | undefined;
5434
- }, {}, {}>;
5435
- /** @since 1.45.0 */
5436
- export declare class HostConfig_1 extends HostConfig_1_base {
5437
- }
5438
- declare const HostConfig_base: Schema.Class<HostConfig, {
4743
+ } | null)[] | null | undefined, never>;
4744
+ /** A list of cgroup rules to apply to the container */
4745
+ DeviceCgroupRules: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
4746
+ /** A list of requests for devices to be sent to device drivers. */
4747
+ DeviceRequests: Schema.PropertySignature<"?:", readonly (DeviceRequest | null)[] | null | undefined, never, "?:", readonly ({
4748
+ readonly Driver?: string | undefined;
4749
+ readonly Count?: number | undefined;
4750
+ readonly DeviceIDs?: readonly string[] | null | undefined;
4751
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
4752
+ readonly Options?: {
4753
+ readonly [x: string]: string;
4754
+ } | null | undefined;
4755
+ } | null)[] | null | undefined, never>;
4756
+ /**
4757
+ * Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI
4758
+ * runtime in use, this option may be ignored. It is no longer supported by
4759
+ * the default (runc) runtime.
4760
+ *
4761
+ * This field is omitted when empty.
4762
+ */
4763
+ KernelMemoryTCP: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4764
+ /** Memory soft limit in bytes. */
4765
+ MemoryReservation: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4766
+ /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */
4767
+ MemorySwap: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4768
+ /**
4769
+ * Tune a container's memory swappiness behavior. Accepts an integer between
4770
+ * 0 and 100.
4771
+ */
4772
+ MemorySwappiness: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4773
+ /** CPU quota in units of 10<sup>-9</sup> CPUs. */
4774
+ NanoCpus: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4775
+ /** Disable OOM Killer for the container. */
4776
+ OomKillDisable: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
4777
+ /**
4778
+ * Run an init inside the container that forwards signals and reaps
4779
+ * processes. This field is omitted if empty, and the default (as configured
4780
+ * on the daemon) is used.
4781
+ */
4782
+ Init: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
4783
+ /**
4784
+ * Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
4785
+ * to not change.
4786
+ */
4787
+ PidsLimit: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4788
+ /**
4789
+ * A list of resource limits to set in the container. For example:
4790
+ *
4791
+ * { "Name": "nofile", "Soft": 1024, "Hard": 2048 }
4792
+ */
4793
+ Ulimits: Schema.PropertySignature<"?:", readonly ({
4794
+ readonly Name?: string | undefined;
4795
+ readonly Soft?: number | undefined;
4796
+ readonly Hard?: number | undefined;
4797
+ } | null)[] | null | undefined, never, "?:", readonly ({
4798
+ readonly Name?: string | undefined;
4799
+ readonly Soft?: number | undefined;
4800
+ readonly Hard?: number | undefined;
4801
+ } | null)[] | null | undefined, never>;
4802
+ /**
4803
+ * The number of usable CPUs (Windows only).
4804
+ *
4805
+ * On Windows Server containers, the processor resource controls are
4806
+ * mutually exclusive. The order of precedence is `CPUCount` first, then
4807
+ * `CPUShares`, and `CPUPercent` last.
4808
+ */
4809
+ CpuCount: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4810
+ /**
4811
+ * The usable percentage of the available CPUs (Windows only).
4812
+ *
4813
+ * On Windows Server containers, the processor resource controls are
4814
+ * mutually exclusive. The order of precedence is `CPUCount` first, then
4815
+ * `CPUShares`, and `CPUPercent` last.
4816
+ */
4817
+ CpuPercent: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4818
+ /** Maximum IOps for the container system drive (Windows only) */
4819
+ IOMaximumIOps: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4820
+ /**
4821
+ * Maximum IO in bytes per second for the container system drive (Windows
4822
+ * only).
4823
+ */
4824
+ IOMaximumBandwidth: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
4825
+ } & {
5439
4826
  /**
5440
4827
  * A list of volume bindings for this container. Each volume binding is a
5441
4828
  * string in one of these forms:
@@ -5702,6 +5089,44 @@ declare const HostConfig_base: Schema.Class<HostConfig, {
5702
5089
  */
5703
5090
  ReadonlyPaths: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
5704
5091
  }, {
5092
+ readonly CpuShares?: number | null | undefined;
5093
+ readonly Memory?: number | null | undefined;
5094
+ readonly CgroupParent?: string | null | undefined;
5095
+ readonly BlkioWeight?: number | null | undefined;
5096
+ readonly BlkioWeightDevice?: readonly ({
5097
+ readonly Path?: string | undefined;
5098
+ readonly Weight?: number | undefined;
5099
+ } | null)[] | null | undefined;
5100
+ readonly BlkioDeviceReadBps?: readonly (ThrottleDevice | null)[] | null | undefined;
5101
+ readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
5102
+ readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
5103
+ readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
5104
+ readonly CpuPeriod?: number | null | undefined;
5105
+ readonly CpuQuota?: number | null | undefined;
5106
+ readonly CpuRealtimePeriod?: number | null | undefined;
5107
+ readonly CpuRealtimeRuntime?: number | null | undefined;
5108
+ readonly CpusetCpus?: string | null | undefined;
5109
+ readonly CpusetMems?: string | null | undefined;
5110
+ readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
5111
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
5112
+ readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
5113
+ readonly KernelMemoryTCP?: number | null | undefined;
5114
+ readonly MemoryReservation?: number | null | undefined;
5115
+ readonly MemorySwap?: number | null | undefined;
5116
+ readonly MemorySwappiness?: number | null | undefined;
5117
+ readonly NanoCpus?: number | null | undefined;
5118
+ readonly OomKillDisable?: boolean | null | undefined;
5119
+ readonly Init?: boolean | null | undefined;
5120
+ readonly PidsLimit?: number | null | undefined;
5121
+ readonly Ulimits?: readonly ({
5122
+ readonly Name?: string | undefined;
5123
+ readonly Soft?: number | undefined;
5124
+ readonly Hard?: number | undefined;
5125
+ } | null)[] | null | undefined;
5126
+ readonly CpuCount?: number | null | undefined;
5127
+ readonly CpuPercent?: number | null | undefined;
5128
+ readonly IOMaximumIOps?: number | null | undefined;
5129
+ readonly IOMaximumBandwidth?: number | null | undefined;
5705
5130
  readonly RestartPolicy?: RestartPolicy | null | undefined;
5706
5131
  readonly Runtime?: string | undefined;
5707
5132
  readonly ConsoleSize?: readonly number[] | null | undefined;
@@ -5757,6 +5182,68 @@ declare const HostConfig_base: Schema.Class<HostConfig, {
5757
5182
  readonly MaskedPaths?: readonly string[] | null | undefined;
5758
5183
  readonly ReadonlyPaths?: readonly string[] | null | undefined;
5759
5184
  }, {
5185
+ readonly CpuShares?: number | null | undefined;
5186
+ readonly Memory?: number | null | undefined;
5187
+ readonly CgroupParent?: string | null | undefined;
5188
+ readonly BlkioWeight?: number | null | undefined;
5189
+ readonly BlkioWeightDevice?: readonly ({
5190
+ readonly Path?: string | undefined;
5191
+ readonly Weight?: number | undefined;
5192
+ } | null)[] | null | undefined;
5193
+ readonly BlkioDeviceReadBps?: readonly ({
5194
+ readonly Path?: string | undefined;
5195
+ readonly Rate?: number | undefined;
5196
+ } | null)[] | null | undefined;
5197
+ readonly BlkioDeviceWriteBps?: readonly ({
5198
+ readonly Path?: string | undefined;
5199
+ readonly Rate?: number | undefined;
5200
+ } | null)[] | null | undefined;
5201
+ readonly BlkioDeviceReadIOps?: readonly ({
5202
+ readonly Path?: string | undefined;
5203
+ readonly Rate?: number | undefined;
5204
+ } | null)[] | null | undefined;
5205
+ readonly BlkioDeviceWriteIOps?: readonly ({
5206
+ readonly Path?: string | undefined;
5207
+ readonly Rate?: number | undefined;
5208
+ } | null)[] | null | undefined;
5209
+ readonly CpuPeriod?: number | null | undefined;
5210
+ readonly CpuQuota?: number | null | undefined;
5211
+ readonly CpuRealtimePeriod?: number | null | undefined;
5212
+ readonly CpuRealtimeRuntime?: number | null | undefined;
5213
+ readonly CpusetCpus?: string | null | undefined;
5214
+ readonly CpusetMems?: string | null | undefined;
5215
+ readonly Devices?: readonly ({
5216
+ readonly PathOnHost?: string | undefined;
5217
+ readonly PathInContainer?: string | undefined;
5218
+ readonly CgroupPermissions?: string | undefined;
5219
+ } | null)[] | null | undefined;
5220
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
5221
+ readonly DeviceRequests?: readonly ({
5222
+ readonly Driver?: string | undefined;
5223
+ readonly Count?: number | undefined;
5224
+ readonly DeviceIDs?: readonly string[] | null | undefined;
5225
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
5226
+ readonly Options?: {
5227
+ readonly [x: string]: string;
5228
+ } | null | undefined;
5229
+ } | null)[] | null | undefined;
5230
+ readonly KernelMemoryTCP?: number | null | undefined;
5231
+ readonly MemoryReservation?: number | null | undefined;
5232
+ readonly MemorySwap?: number | null | undefined;
5233
+ readonly MemorySwappiness?: number | null | undefined;
5234
+ readonly NanoCpus?: number | null | undefined;
5235
+ readonly OomKillDisable?: boolean | null | undefined;
5236
+ readonly Init?: boolean | null | undefined;
5237
+ readonly PidsLimit?: number | null | undefined;
5238
+ readonly Ulimits?: readonly ({
5239
+ readonly Name?: string | undefined;
5240
+ readonly Soft?: number | undefined;
5241
+ readonly Hard?: number | undefined;
5242
+ } | null)[] | null | undefined;
5243
+ readonly CpuCount?: number | null | undefined;
5244
+ readonly CpuPercent?: number | null | undefined;
5245
+ readonly IOMaximumIOps?: number | null | undefined;
5246
+ readonly IOMaximumBandwidth?: number | null | undefined;
5760
5247
  readonly RestartPolicy?: {
5761
5248
  readonly Name?: RestartPolicy_Name | undefined;
5762
5249
  readonly MaximumRetryCount?: number | undefined;
@@ -5845,6 +5332,44 @@ declare const HostConfig_base: Schema.Class<HostConfig, {
5845
5332
  readonly MaskedPaths?: readonly string[] | null | undefined;
5846
5333
  readonly ReadonlyPaths?: readonly string[] | null | undefined;
5847
5334
  }, never, {
5335
+ readonly CpuShares?: number | null | undefined;
5336
+ readonly Memory?: number | null | undefined;
5337
+ readonly CgroupParent?: string | null | undefined;
5338
+ readonly BlkioWeight?: number | null | undefined;
5339
+ readonly BlkioWeightDevice?: readonly ({
5340
+ readonly Path?: string | undefined;
5341
+ readonly Weight?: number | undefined;
5342
+ } | null)[] | null | undefined;
5343
+ readonly BlkioDeviceReadBps?: readonly (ThrottleDevice | null)[] | null | undefined;
5344
+ readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
5345
+ readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
5346
+ readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
5347
+ readonly CpuPeriod?: number | null | undefined;
5348
+ readonly CpuQuota?: number | null | undefined;
5349
+ readonly CpuRealtimePeriod?: number | null | undefined;
5350
+ readonly CpuRealtimeRuntime?: number | null | undefined;
5351
+ readonly CpusetCpus?: string | null | undefined;
5352
+ readonly CpusetMems?: string | null | undefined;
5353
+ readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
5354
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
5355
+ readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
5356
+ readonly KernelMemoryTCP?: number | null | undefined;
5357
+ readonly MemoryReservation?: number | null | undefined;
5358
+ readonly MemorySwap?: number | null | undefined;
5359
+ readonly MemorySwappiness?: number | null | undefined;
5360
+ readonly NanoCpus?: number | null | undefined;
5361
+ readonly OomKillDisable?: boolean | null | undefined;
5362
+ readonly Init?: boolean | null | undefined;
5363
+ readonly PidsLimit?: number | null | undefined;
5364
+ readonly Ulimits?: readonly ({
5365
+ readonly Name?: string | undefined;
5366
+ readonly Soft?: number | undefined;
5367
+ readonly Hard?: number | undefined;
5368
+ } | null)[] | null | undefined;
5369
+ readonly CpuCount?: number | null | undefined;
5370
+ readonly CpuPercent?: number | null | undefined;
5371
+ readonly IOMaximumIOps?: number | null | undefined;
5372
+ readonly IOMaximumBandwidth?: number | null | undefined;
5848
5373
  readonly RestartPolicy?: RestartPolicy | null | undefined;
5849
5374
  readonly Runtime?: string | undefined;
5850
5375
  readonly ConsoleSize?: readonly number[] | null | undefined;
@@ -5899,7 +5424,7 @@ declare const HostConfig_base: Schema.Class<HostConfig, {
5899
5424
  readonly Isolation?: HostConfig_1_Isolation | undefined;
5900
5425
  readonly MaskedPaths?: readonly string[] | null | undefined;
5901
5426
  readonly ReadonlyPaths?: readonly string[] | null | undefined;
5902
- }, HostConfig_1, {}>;
5427
+ }, Resources, {}>;
5903
5428
  /** @since 1.45.0 */
5904
5429
  export declare class HostConfig extends HostConfig_base {
5905
5430
  }
@@ -6860,7 +6385,7 @@ declare const NodeDescription_base: Schema.Class<NodeDescription, {
6860
6385
  /** @since 1.45.0 */
6861
6386
  export declare class NodeDescription extends NodeDescription_base {
6862
6387
  }
6863
- declare const Swarm_0_base: Schema.Class<Swarm_0, {
6388
+ declare const Swarm_base: Schema.Class<Swarm, {
6864
6389
  /** The ID of the swarm. */
6865
6390
  ID: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
6866
6391
  Version: Schema.PropertySignature<"?:", ObjectVersion | null | undefined, never, "?:", {
@@ -6943,6 +6468,11 @@ declare const Swarm_0_base: Schema.Class<Swarm_0, {
6943
6468
  * default subnet pool.
6944
6469
  */
6945
6470
  SubnetSize: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
6471
+ } & {
6472
+ JoinTokens: Schema.PropertySignature<"?:", JoinTokens | null | undefined, never, "?:", {
6473
+ readonly Worker?: string | undefined;
6474
+ readonly Manager?: string | undefined;
6475
+ } | null | undefined, never>;
6946
6476
  }, {
6947
6477
  readonly ID?: string | undefined;
6948
6478
  readonly CreatedAt?: string | undefined;
@@ -6954,6 +6484,7 @@ declare const Swarm_0_base: Schema.Class<Swarm_0, {
6954
6484
  readonly DataPathPort?: number | undefined;
6955
6485
  readonly DefaultAddrPool?: readonly string[] | null | undefined;
6956
6486
  readonly SubnetSize?: number | undefined;
6487
+ readonly JoinTokens?: JoinTokens | null | undefined;
6957
6488
  }, {
6958
6489
  readonly ID?: string | undefined;
6959
6490
  readonly CreatedAt?: string | undefined;
@@ -7014,6 +6545,10 @@ declare const Swarm_0_base: Schema.Class<Swarm_0, {
7014
6545
  readonly DataPathPort?: number | undefined;
7015
6546
  readonly DefaultAddrPool?: readonly string[] | null | undefined;
7016
6547
  readonly SubnetSize?: number | undefined;
6548
+ readonly JoinTokens?: {
6549
+ readonly Worker?: string | undefined;
6550
+ readonly Manager?: string | undefined;
6551
+ } | null | undefined;
7017
6552
  }, never, {
7018
6553
  readonly ID?: string | undefined;
7019
6554
  readonly CreatedAt?: string | undefined;
@@ -7025,43 +6560,8 @@ declare const Swarm_0_base: Schema.Class<Swarm_0, {
7025
6560
  readonly DataPathPort?: number | undefined;
7026
6561
  readonly DefaultAddrPool?: readonly string[] | null | undefined;
7027
6562
  readonly SubnetSize?: number | undefined;
7028
- }, ClusterInfo, {}>;
7029
- /** @since 1.45.0 */
7030
- export declare class Swarm_0 extends Swarm_0_base {
7031
- }
7032
- declare const Swarm_1_base: Schema.Class<Swarm_1, {
7033
- JoinTokens: Schema.PropertySignature<"?:", JoinTokens | null | undefined, never, "?:", {
7034
- readonly Worker?: string | undefined;
7035
- readonly Manager?: string | undefined;
7036
- } | null | undefined, never>;
7037
- }, {
7038
- readonly JoinTokens?: JoinTokens | null | undefined;
7039
- }, {
7040
- readonly JoinTokens?: {
7041
- readonly Worker?: string | undefined;
7042
- readonly Manager?: string | undefined;
7043
- } | null | undefined;
7044
- }, never, {
7045
- readonly JoinTokens?: JoinTokens | null | undefined;
7046
- }, {}, {}>;
7047
- /** @since 1.45.0 */
7048
- export declare class Swarm_1 extends Swarm_1_base {
7049
- }
7050
- declare const Swarm_base: Schema.Class<Swarm, {
7051
- JoinTokens: Schema.PropertySignature<"?:", JoinTokens | null | undefined, never, "?:", {
7052
- readonly Worker?: string | undefined;
7053
- readonly Manager?: string | undefined;
7054
- } | null | undefined, never>;
7055
- }, {
7056
- readonly JoinTokens?: JoinTokens | null | undefined;
7057
- }, {
7058
- readonly JoinTokens?: {
7059
- readonly Worker?: string | undefined;
7060
- readonly Manager?: string | undefined;
7061
- } | null | undefined;
7062
- }, never, {
7063
6563
  readonly JoinTokens?: JoinTokens | null | undefined;
7064
- }, Swarm_1, {}>;
6564
+ }, ClusterInfo, {}>;
7065
6565
  /** @since 1.45.0 */
7066
6566
  export declare class Swarm extends Swarm_base {
7067
6567
  }
@@ -11044,6 +10544,68 @@ declare const ContainerInspectResponse_base: Schema.Class<ContainerInspectRespon
11044
10544
  /** IDs of exec instances that are running in the container. */
11045
10545
  ExecIDs: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
11046
10546
  HostConfig: Schema.PropertySignature<"?:", HostConfig | null | undefined, never, "?:", {
10547
+ readonly CpuShares?: number | null | undefined;
10548
+ readonly Memory?: number | null | undefined;
10549
+ readonly CgroupParent?: string | null | undefined;
10550
+ readonly BlkioWeight?: number | null | undefined;
10551
+ readonly BlkioWeightDevice?: readonly ({
10552
+ readonly Path?: string | undefined;
10553
+ readonly Weight?: number | undefined;
10554
+ } | null)[] | null | undefined;
10555
+ readonly BlkioDeviceReadBps?: readonly ({
10556
+ readonly Path?: string | undefined;
10557
+ readonly Rate?: number | undefined;
10558
+ } | null)[] | null | undefined;
10559
+ readonly BlkioDeviceWriteBps?: readonly ({
10560
+ readonly Path?: string | undefined;
10561
+ readonly Rate?: number | undefined;
10562
+ } | null)[] | null | undefined;
10563
+ readonly BlkioDeviceReadIOps?: readonly ({
10564
+ readonly Path?: string | undefined;
10565
+ readonly Rate?: number | undefined;
10566
+ } | null)[] | null | undefined;
10567
+ readonly BlkioDeviceWriteIOps?: readonly ({
10568
+ readonly Path?: string | undefined;
10569
+ readonly Rate?: number | undefined;
10570
+ } | null)[] | null | undefined;
10571
+ readonly CpuPeriod?: number | null | undefined;
10572
+ readonly CpuQuota?: number | null | undefined;
10573
+ readonly CpuRealtimePeriod?: number | null | undefined;
10574
+ readonly CpuRealtimeRuntime?: number | null | undefined;
10575
+ readonly CpusetCpus?: string | null | undefined;
10576
+ readonly CpusetMems?: string | null | undefined;
10577
+ readonly Devices?: readonly ({
10578
+ readonly PathOnHost?: string | undefined;
10579
+ readonly PathInContainer?: string | undefined;
10580
+ readonly CgroupPermissions?: string | undefined;
10581
+ } | null)[] | null | undefined;
10582
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
10583
+ readonly DeviceRequests?: readonly ({
10584
+ readonly Driver?: string | undefined;
10585
+ readonly Count?: number | undefined;
10586
+ readonly DeviceIDs?: readonly string[] | null | undefined;
10587
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
10588
+ readonly Options?: {
10589
+ readonly [x: string]: string;
10590
+ } | null | undefined;
10591
+ } | null)[] | null | undefined;
10592
+ readonly KernelMemoryTCP?: number | null | undefined;
10593
+ readonly MemoryReservation?: number | null | undefined;
10594
+ readonly MemorySwap?: number | null | undefined;
10595
+ readonly MemorySwappiness?: number | null | undefined;
10596
+ readonly NanoCpus?: number | null | undefined;
10597
+ readonly OomKillDisable?: boolean | null | undefined;
10598
+ readonly Init?: boolean | null | undefined;
10599
+ readonly PidsLimit?: number | null | undefined;
10600
+ readonly Ulimits?: readonly ({
10601
+ readonly Name?: string | undefined;
10602
+ readonly Soft?: number | undefined;
10603
+ readonly Hard?: number | undefined;
10604
+ } | null)[] | null | undefined;
10605
+ readonly CpuCount?: number | null | undefined;
10606
+ readonly CpuPercent?: number | null | undefined;
10607
+ readonly IOMaximumIOps?: number | null | undefined;
10608
+ readonly IOMaximumBandwidth?: number | null | undefined;
11047
10609
  readonly RestartPolicy?: {
11048
10610
  readonly Name?: RestartPolicy_Name | undefined;
11049
10611
  readonly MaximumRetryCount?: number | undefined;
@@ -11352,6 +10914,68 @@ declare const ContainerInspectResponse_base: Schema.Class<ContainerInspectRespon
11352
10914
  readonly FinishedAt?: string | undefined;
11353
10915
  } | null | undefined;
11354
10916
  readonly HostConfig?: {
10917
+ readonly CpuShares?: number | null | undefined;
10918
+ readonly Memory?: number | null | undefined;
10919
+ readonly CgroupParent?: string | null | undefined;
10920
+ readonly BlkioWeight?: number | null | undefined;
10921
+ readonly BlkioWeightDevice?: readonly ({
10922
+ readonly Path?: string | undefined;
10923
+ readonly Weight?: number | undefined;
10924
+ } | null)[] | null | undefined;
10925
+ readonly BlkioDeviceReadBps?: readonly ({
10926
+ readonly Path?: string | undefined;
10927
+ readonly Rate?: number | undefined;
10928
+ } | null)[] | null | undefined;
10929
+ readonly BlkioDeviceWriteBps?: readonly ({
10930
+ readonly Path?: string | undefined;
10931
+ readonly Rate?: number | undefined;
10932
+ } | null)[] | null | undefined;
10933
+ readonly BlkioDeviceReadIOps?: readonly ({
10934
+ readonly Path?: string | undefined;
10935
+ readonly Rate?: number | undefined;
10936
+ } | null)[] | null | undefined;
10937
+ readonly BlkioDeviceWriteIOps?: readonly ({
10938
+ readonly Path?: string | undefined;
10939
+ readonly Rate?: number | undefined;
10940
+ } | null)[] | null | undefined;
10941
+ readonly CpuPeriod?: number | null | undefined;
10942
+ readonly CpuQuota?: number | null | undefined;
10943
+ readonly CpuRealtimePeriod?: number | null | undefined;
10944
+ readonly CpuRealtimeRuntime?: number | null | undefined;
10945
+ readonly CpusetCpus?: string | null | undefined;
10946
+ readonly CpusetMems?: string | null | undefined;
10947
+ readonly Devices?: readonly ({
10948
+ readonly PathOnHost?: string | undefined;
10949
+ readonly PathInContainer?: string | undefined;
10950
+ readonly CgroupPermissions?: string | undefined;
10951
+ } | null)[] | null | undefined;
10952
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
10953
+ readonly DeviceRequests?: readonly ({
10954
+ readonly Driver?: string | undefined;
10955
+ readonly Count?: number | undefined;
10956
+ readonly DeviceIDs?: readonly string[] | null | undefined;
10957
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
10958
+ readonly Options?: {
10959
+ readonly [x: string]: string;
10960
+ } | null | undefined;
10961
+ } | null)[] | null | undefined;
10962
+ readonly KernelMemoryTCP?: number | null | undefined;
10963
+ readonly MemoryReservation?: number | null | undefined;
10964
+ readonly MemorySwap?: number | null | undefined;
10965
+ readonly MemorySwappiness?: number | null | undefined;
10966
+ readonly NanoCpus?: number | null | undefined;
10967
+ readonly OomKillDisable?: boolean | null | undefined;
10968
+ readonly Init?: boolean | null | undefined;
10969
+ readonly PidsLimit?: number | null | undefined;
10970
+ readonly Ulimits?: readonly ({
10971
+ readonly Name?: string | undefined;
10972
+ readonly Soft?: number | undefined;
10973
+ readonly Hard?: number | undefined;
10974
+ } | null)[] | null | undefined;
10975
+ readonly CpuCount?: number | null | undefined;
10976
+ readonly CpuPercent?: number | null | undefined;
10977
+ readonly IOMaximumIOps?: number | null | undefined;
10978
+ readonly IOMaximumBandwidth?: number | null | undefined;
11355
10979
  readonly RestartPolicy?: {
11356
10980
  readonly Name?: RestartPolicy_Name | undefined;
11357
10981
  readonly MaximumRetryCount?: number | undefined;
@@ -12677,18 +12301,18 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12677
12301
  * An integer value representing this container's relative CPU weight versus
12678
12302
  * other containers.
12679
12303
  */
12680
- CpuShares: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12304
+ CpuShares: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12681
12305
  /** Memory limit in bytes. */
12682
- Memory: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12306
+ Memory: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12683
12307
  /**
12684
12308
  * Path to `cgroups` under which the container's `cgroup` is created. If the
12685
12309
  * path is not absolute, the path is considered to be relative to the
12686
12310
  * `cgroups` path of the init process. Cgroups are created if they do not
12687
12311
  * already exist.
12688
12312
  */
12689
- CgroupParent: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
12313
+ CgroupParent: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
12690
12314
  /** Block IO weight (relative weight). */
12691
- BlkioWeight: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12315
+ BlkioWeight: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12692
12316
  /**
12693
12317
  * Block IO weight (relative device weight) in the form:
12694
12318
  *
@@ -12738,26 +12362,26 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12738
12362
  readonly Rate?: number | undefined;
12739
12363
  } | null)[] | null | undefined, never>;
12740
12364
  /** The length of a CPU period in microseconds. */
12741
- CpuPeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12365
+ CpuPeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12742
12366
  /** Microseconds of CPU time that the container can get in a CPU period. */
12743
- CpuQuota: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12367
+ CpuQuota: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12744
12368
  /**
12745
12369
  * The length of a CPU real-time period in microseconds. Set to 0 to
12746
12370
  * allocate no time allocated to real-time tasks.
12747
12371
  */
12748
- CpuRealtimePeriod: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12372
+ CpuRealtimePeriod: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12749
12373
  /**
12750
12374
  * The length of a CPU real-time runtime in microseconds. Set to 0 to
12751
12375
  * allocate no time allocated to real-time tasks.
12752
12376
  */
12753
- CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12377
+ CpuRealtimeRuntime: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12754
12378
  /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */
12755
- CpusetCpus: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
12379
+ CpusetCpus: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
12756
12380
  /**
12757
12381
  * Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only
12758
12382
  * effective on NUMA systems.
12759
12383
  */
12760
- CpusetMems: Schema.PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>;
12384
+ CpusetMems: Schema.PropertySignature<"?:", string | null | undefined, never, "?:", string | null | undefined, never>;
12761
12385
  /** A list of devices to add to the container. */
12762
12386
  Devices: Schema.PropertySignature<"?:", readonly (DeviceMapping | null)[] | null | undefined, never, "?:", readonly ({
12763
12387
  readonly PathOnHost?: string | undefined;
@@ -12783,31 +12407,31 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12783
12407
  *
12784
12408
  * This field is omitted when empty.
12785
12409
  */
12786
- KernelMemoryTCP: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12410
+ KernelMemoryTCP: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12787
12411
  /** Memory soft limit in bytes. */
12788
- MemoryReservation: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12412
+ MemoryReservation: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12789
12413
  /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */
12790
- MemorySwap: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12414
+ MemorySwap: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12791
12415
  /**
12792
12416
  * Tune a container's memory swappiness behavior. Accepts an integer between
12793
12417
  * 0 and 100.
12794
12418
  */
12795
- MemorySwappiness: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12419
+ MemorySwappiness: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12796
12420
  /** CPU quota in units of 10<sup>-9</sup> CPUs. */
12797
- NanoCpus: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12421
+ NanoCpus: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12798
12422
  /** Disable OOM Killer for the container. */
12799
- OomKillDisable: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
12423
+ OomKillDisable: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
12800
12424
  /**
12801
12425
  * Run an init inside the container that forwards signals and reaps
12802
12426
  * processes. This field is omitted if empty, and the default (as configured
12803
12427
  * on the daemon) is used.
12804
12428
  */
12805
- Init: Schema.PropertySignature<"?:", boolean | undefined, never, "?:", boolean | undefined, never>;
12429
+ Init: Schema.PropertySignature<"?:", boolean | null | undefined, never, "?:", boolean | null | undefined, never>;
12806
12430
  /**
12807
12431
  * Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
12808
12432
  * to not change.
12809
12433
  */
12810
- PidsLimit: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12434
+ PidsLimit: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12811
12435
  /**
12812
12436
  * A list of resource limits to set in the container. For example:
12813
12437
  *
@@ -12829,7 +12453,7 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12829
12453
  * mutually exclusive. The order of precedence is `CPUCount` first, then
12830
12454
  * `CPUShares`, and `CPUPercent` last.
12831
12455
  */
12832
- CpuCount: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12456
+ CpuCount: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12833
12457
  /**
12834
12458
  * The usable percentage of the available CPUs (Windows only).
12835
12459
  *
@@ -12837,24 +12461,24 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12837
12461
  * mutually exclusive. The order of precedence is `CPUCount` first, then
12838
12462
  * `CPUShares`, and `CPUPercent` last.
12839
12463
  */
12840
- CpuPercent: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12464
+ CpuPercent: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12841
12465
  /** Maximum IOps for the container system drive (Windows only) */
12842
- IOMaximumIOps: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12466
+ IOMaximumIOps: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12843
12467
  /**
12844
12468
  * Maximum IO in bytes per second for the container system drive (Windows
12845
12469
  * only).
12846
12470
  */
12847
- IOMaximumBandwidth: Schema.PropertySignature<"?:", number | undefined, never, "?:", number | undefined, never>;
12471
+ IOMaximumBandwidth: Schema.PropertySignature<"?:", number | null | undefined, never, "?:", number | null | undefined, never>;
12848
12472
  } & {
12849
12473
  RestartPolicy: Schema.PropertySignature<"?:", RestartPolicy | undefined, never, "?:", {
12850
12474
  readonly Name?: RestartPolicy_Name | undefined;
12851
12475
  readonly MaximumRetryCount?: number | undefined;
12852
12476
  } | undefined, never>;
12853
12477
  }, {
12854
- readonly CpuShares?: number | undefined;
12855
- readonly Memory?: number | undefined;
12856
- readonly CgroupParent?: string | undefined;
12857
- readonly BlkioWeight?: number | undefined;
12478
+ readonly CpuShares?: number | null | undefined;
12479
+ readonly Memory?: number | null | undefined;
12480
+ readonly CgroupParent?: string | null | undefined;
12481
+ readonly BlkioWeight?: number | null | undefined;
12858
12482
  readonly BlkioWeightDevice?: readonly ({
12859
12483
  readonly Path?: string | undefined;
12860
12484
  readonly Weight?: number | undefined;
@@ -12863,38 +12487,38 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12863
12487
  readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
12864
12488
  readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
12865
12489
  readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
12866
- readonly CpuPeriod?: number | undefined;
12867
- readonly CpuQuota?: number | undefined;
12868
- readonly CpuRealtimePeriod?: number | undefined;
12869
- readonly CpuRealtimeRuntime?: number | undefined;
12870
- readonly CpusetCpus?: string | undefined;
12871
- readonly CpusetMems?: string | undefined;
12490
+ readonly CpuPeriod?: number | null | undefined;
12491
+ readonly CpuQuota?: number | null | undefined;
12492
+ readonly CpuRealtimePeriod?: number | null | undefined;
12493
+ readonly CpuRealtimeRuntime?: number | null | undefined;
12494
+ readonly CpusetCpus?: string | null | undefined;
12495
+ readonly CpusetMems?: string | null | undefined;
12872
12496
  readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
12873
12497
  readonly DeviceCgroupRules?: readonly string[] | null | undefined;
12874
12498
  readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
12875
- readonly KernelMemoryTCP?: number | undefined;
12876
- readonly MemoryReservation?: number | undefined;
12877
- readonly MemorySwap?: number | undefined;
12878
- readonly MemorySwappiness?: number | undefined;
12879
- readonly NanoCpus?: number | undefined;
12880
- readonly OomKillDisable?: boolean | undefined;
12881
- readonly Init?: boolean | undefined;
12882
- readonly PidsLimit?: number | undefined;
12499
+ readonly KernelMemoryTCP?: number | null | undefined;
12500
+ readonly MemoryReservation?: number | null | undefined;
12501
+ readonly MemorySwap?: number | null | undefined;
12502
+ readonly MemorySwappiness?: number | null | undefined;
12503
+ readonly NanoCpus?: number | null | undefined;
12504
+ readonly OomKillDisable?: boolean | null | undefined;
12505
+ readonly Init?: boolean | null | undefined;
12506
+ readonly PidsLimit?: number | null | undefined;
12883
12507
  readonly Ulimits?: readonly ({
12884
12508
  readonly Name?: string | undefined;
12885
12509
  readonly Soft?: number | undefined;
12886
12510
  readonly Hard?: number | undefined;
12887
12511
  } | null)[] | null | undefined;
12888
- readonly CpuCount?: number | undefined;
12889
- readonly CpuPercent?: number | undefined;
12890
- readonly IOMaximumIOps?: number | undefined;
12891
- readonly IOMaximumBandwidth?: number | undefined;
12512
+ readonly CpuCount?: number | null | undefined;
12513
+ readonly CpuPercent?: number | null | undefined;
12514
+ readonly IOMaximumIOps?: number | null | undefined;
12515
+ readonly IOMaximumBandwidth?: number | null | undefined;
12892
12516
  readonly RestartPolicy?: RestartPolicy | undefined;
12893
12517
  }, {
12894
- readonly CpuShares?: number | undefined;
12895
- readonly Memory?: number | undefined;
12896
- readonly CgroupParent?: string | undefined;
12897
- readonly BlkioWeight?: number | undefined;
12518
+ readonly CpuShares?: number | null | undefined;
12519
+ readonly Memory?: number | null | undefined;
12520
+ readonly CgroupParent?: string | null | undefined;
12521
+ readonly BlkioWeight?: number | null | undefined;
12898
12522
  readonly BlkioWeightDevice?: readonly ({
12899
12523
  readonly Path?: string | undefined;
12900
12524
  readonly Weight?: number | undefined;
@@ -12915,12 +12539,12 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12915
12539
  readonly Path?: string | undefined;
12916
12540
  readonly Rate?: number | undefined;
12917
12541
  } | null)[] | null | undefined;
12918
- readonly CpuPeriod?: number | undefined;
12919
- readonly CpuQuota?: number | undefined;
12920
- readonly CpuRealtimePeriod?: number | undefined;
12921
- readonly CpuRealtimeRuntime?: number | undefined;
12922
- readonly CpusetCpus?: string | undefined;
12923
- readonly CpusetMems?: string | undefined;
12542
+ readonly CpuPeriod?: number | null | undefined;
12543
+ readonly CpuQuota?: number | null | undefined;
12544
+ readonly CpuRealtimePeriod?: number | null | undefined;
12545
+ readonly CpuRealtimeRuntime?: number | null | undefined;
12546
+ readonly CpusetCpus?: string | null | undefined;
12547
+ readonly CpusetMems?: string | null | undefined;
12924
12548
  readonly Devices?: readonly ({
12925
12549
  readonly PathOnHost?: string | undefined;
12926
12550
  readonly PathInContainer?: string | undefined;
@@ -12936,32 +12560,32 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12936
12560
  readonly [x: string]: string;
12937
12561
  } | null | undefined;
12938
12562
  } | null)[] | null | undefined;
12939
- readonly KernelMemoryTCP?: number | undefined;
12940
- readonly MemoryReservation?: number | undefined;
12941
- readonly MemorySwap?: number | undefined;
12942
- readonly MemorySwappiness?: number | undefined;
12943
- readonly NanoCpus?: number | undefined;
12944
- readonly OomKillDisable?: boolean | undefined;
12945
- readonly Init?: boolean | undefined;
12946
- readonly PidsLimit?: number | undefined;
12563
+ readonly KernelMemoryTCP?: number | null | undefined;
12564
+ readonly MemoryReservation?: number | null | undefined;
12565
+ readonly MemorySwap?: number | null | undefined;
12566
+ readonly MemorySwappiness?: number | null | undefined;
12567
+ readonly NanoCpus?: number | null | undefined;
12568
+ readonly OomKillDisable?: boolean | null | undefined;
12569
+ readonly Init?: boolean | null | undefined;
12570
+ readonly PidsLimit?: number | null | undefined;
12947
12571
  readonly Ulimits?: readonly ({
12948
12572
  readonly Name?: string | undefined;
12949
12573
  readonly Soft?: number | undefined;
12950
12574
  readonly Hard?: number | undefined;
12951
12575
  } | null)[] | null | undefined;
12952
- readonly CpuCount?: number | undefined;
12953
- readonly CpuPercent?: number | undefined;
12954
- readonly IOMaximumIOps?: number | undefined;
12955
- readonly IOMaximumBandwidth?: number | undefined;
12576
+ readonly CpuCount?: number | null | undefined;
12577
+ readonly CpuPercent?: number | null | undefined;
12578
+ readonly IOMaximumIOps?: number | null | undefined;
12579
+ readonly IOMaximumBandwidth?: number | null | undefined;
12956
12580
  readonly RestartPolicy?: {
12957
12581
  readonly Name?: RestartPolicy_Name | undefined;
12958
12582
  readonly MaximumRetryCount?: number | undefined;
12959
12583
  } | undefined;
12960
12584
  }, never, {
12961
- readonly CpuShares?: number | undefined;
12962
- readonly Memory?: number | undefined;
12963
- readonly CgroupParent?: string | undefined;
12964
- readonly BlkioWeight?: number | undefined;
12585
+ readonly CpuShares?: number | null | undefined;
12586
+ readonly Memory?: number | null | undefined;
12587
+ readonly CgroupParent?: string | null | undefined;
12588
+ readonly BlkioWeight?: number | null | undefined;
12965
12589
  readonly BlkioWeightDevice?: readonly ({
12966
12590
  readonly Path?: string | undefined;
12967
12591
  readonly Weight?: number | undefined;
@@ -12970,32 +12594,32 @@ declare const ContainerUpdateSpec_base: Schema.Class<ContainerUpdateSpec, {
12970
12594
  readonly BlkioDeviceWriteBps?: readonly (ThrottleDevice | null)[] | null | undefined;
12971
12595
  readonly BlkioDeviceReadIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
12972
12596
  readonly BlkioDeviceWriteIOps?: readonly (ThrottleDevice | null)[] | null | undefined;
12973
- readonly CpuPeriod?: number | undefined;
12974
- readonly CpuQuota?: number | undefined;
12975
- readonly CpuRealtimePeriod?: number | undefined;
12976
- readonly CpuRealtimeRuntime?: number | undefined;
12977
- readonly CpusetCpus?: string | undefined;
12978
- readonly CpusetMems?: string | undefined;
12597
+ readonly CpuPeriod?: number | null | undefined;
12598
+ readonly CpuQuota?: number | null | undefined;
12599
+ readonly CpuRealtimePeriod?: number | null | undefined;
12600
+ readonly CpuRealtimeRuntime?: number | null | undefined;
12601
+ readonly CpusetCpus?: string | null | undefined;
12602
+ readonly CpusetMems?: string | null | undefined;
12979
12603
  readonly Devices?: readonly (DeviceMapping | null)[] | null | undefined;
12980
12604
  readonly DeviceCgroupRules?: readonly string[] | null | undefined;
12981
12605
  readonly DeviceRequests?: readonly (DeviceRequest | null)[] | null | undefined;
12982
- readonly KernelMemoryTCP?: number | undefined;
12983
- readonly MemoryReservation?: number | undefined;
12984
- readonly MemorySwap?: number | undefined;
12985
- readonly MemorySwappiness?: number | undefined;
12986
- readonly NanoCpus?: number | undefined;
12987
- readonly OomKillDisable?: boolean | undefined;
12988
- readonly Init?: boolean | undefined;
12989
- readonly PidsLimit?: number | undefined;
12606
+ readonly KernelMemoryTCP?: number | null | undefined;
12607
+ readonly MemoryReservation?: number | null | undefined;
12608
+ readonly MemorySwap?: number | null | undefined;
12609
+ readonly MemorySwappiness?: number | null | undefined;
12610
+ readonly NanoCpus?: number | null | undefined;
12611
+ readonly OomKillDisable?: boolean | null | undefined;
12612
+ readonly Init?: boolean | null | undefined;
12613
+ readonly PidsLimit?: number | null | undefined;
12990
12614
  readonly Ulimits?: readonly ({
12991
12615
  readonly Name?: string | undefined;
12992
12616
  readonly Soft?: number | undefined;
12993
12617
  readonly Hard?: number | undefined;
12994
12618
  } | null)[] | null | undefined;
12995
- readonly CpuCount?: number | undefined;
12996
- readonly CpuPercent?: number | undefined;
12997
- readonly IOMaximumIOps?: number | undefined;
12998
- readonly IOMaximumBandwidth?: number | undefined;
12619
+ readonly CpuCount?: number | null | undefined;
12620
+ readonly CpuPercent?: number | null | undefined;
12621
+ readonly IOMaximumIOps?: number | null | undefined;
12622
+ readonly IOMaximumBandwidth?: number | null | undefined;
12999
12623
  readonly RestartPolicy?: RestartPolicy | undefined;
13000
12624
  }, Resources, {}>;
13001
12625
  /** @since 1.45.0 */
@@ -13091,6 +12715,68 @@ declare const ContainerCreateSpec_base: Schema.Class<ContainerCreateSpec, {
13091
12715
  Shell: Schema.PropertySignature<"?:", readonly string[] | null | undefined, never, "?:", readonly string[] | null | undefined, never>;
13092
12716
  } & {
13093
12717
  HostConfig: Schema.PropertySignature<"?:", HostConfig | undefined, never, "?:", {
12718
+ readonly CpuShares?: number | null | undefined;
12719
+ readonly Memory?: number | null | undefined;
12720
+ readonly CgroupParent?: string | null | undefined;
12721
+ readonly BlkioWeight?: number | null | undefined;
12722
+ readonly BlkioWeightDevice?: readonly ({
12723
+ readonly Path?: string | undefined;
12724
+ readonly Weight?: number | undefined;
12725
+ } | null)[] | null | undefined;
12726
+ readonly BlkioDeviceReadBps?: readonly ({
12727
+ readonly Path?: string | undefined;
12728
+ readonly Rate?: number | undefined;
12729
+ } | null)[] | null | undefined;
12730
+ readonly BlkioDeviceWriteBps?: readonly ({
12731
+ readonly Path?: string | undefined;
12732
+ readonly Rate?: number | undefined;
12733
+ } | null)[] | null | undefined;
12734
+ readonly BlkioDeviceReadIOps?: readonly ({
12735
+ readonly Path?: string | undefined;
12736
+ readonly Rate?: number | undefined;
12737
+ } | null)[] | null | undefined;
12738
+ readonly BlkioDeviceWriteIOps?: readonly ({
12739
+ readonly Path?: string | undefined;
12740
+ readonly Rate?: number | undefined;
12741
+ } | null)[] | null | undefined;
12742
+ readonly CpuPeriod?: number | null | undefined;
12743
+ readonly CpuQuota?: number | null | undefined;
12744
+ readonly CpuRealtimePeriod?: number | null | undefined;
12745
+ readonly CpuRealtimeRuntime?: number | null | undefined;
12746
+ readonly CpusetCpus?: string | null | undefined;
12747
+ readonly CpusetMems?: string | null | undefined;
12748
+ readonly Devices?: readonly ({
12749
+ readonly PathOnHost?: string | undefined;
12750
+ readonly PathInContainer?: string | undefined;
12751
+ readonly CgroupPermissions?: string | undefined;
12752
+ } | null)[] | null | undefined;
12753
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
12754
+ readonly DeviceRequests?: readonly ({
12755
+ readonly Driver?: string | undefined;
12756
+ readonly Count?: number | undefined;
12757
+ readonly DeviceIDs?: readonly string[] | null | undefined;
12758
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
12759
+ readonly Options?: {
12760
+ readonly [x: string]: string;
12761
+ } | null | undefined;
12762
+ } | null)[] | null | undefined;
12763
+ readonly KernelMemoryTCP?: number | null | undefined;
12764
+ readonly MemoryReservation?: number | null | undefined;
12765
+ readonly MemorySwap?: number | null | undefined;
12766
+ readonly MemorySwappiness?: number | null | undefined;
12767
+ readonly NanoCpus?: number | null | undefined;
12768
+ readonly OomKillDisable?: boolean | null | undefined;
12769
+ readonly Init?: boolean | null | undefined;
12770
+ readonly PidsLimit?: number | null | undefined;
12771
+ readonly Ulimits?: readonly ({
12772
+ readonly Name?: string | undefined;
12773
+ readonly Soft?: number | undefined;
12774
+ readonly Hard?: number | undefined;
12775
+ } | null)[] | null | undefined;
12776
+ readonly CpuCount?: number | null | undefined;
12777
+ readonly CpuPercent?: number | null | undefined;
12778
+ readonly IOMaximumIOps?: number | null | undefined;
12779
+ readonly IOMaximumBandwidth?: number | null | undefined;
13094
12780
  readonly RestartPolicy?: {
13095
12781
  readonly Name?: RestartPolicy_Name | undefined;
13096
12782
  readonly MaximumRetryCount?: number | undefined;
@@ -13277,6 +12963,68 @@ declare const ContainerCreateSpec_base: Schema.Class<ContainerCreateSpec, {
13277
12963
  readonly StopTimeout?: number | undefined;
13278
12964
  readonly Shell?: readonly string[] | null | undefined;
13279
12965
  readonly HostConfig?: {
12966
+ readonly CpuShares?: number | null | undefined;
12967
+ readonly Memory?: number | null | undefined;
12968
+ readonly CgroupParent?: string | null | undefined;
12969
+ readonly BlkioWeight?: number | null | undefined;
12970
+ readonly BlkioWeightDevice?: readonly ({
12971
+ readonly Path?: string | undefined;
12972
+ readonly Weight?: number | undefined;
12973
+ } | null)[] | null | undefined;
12974
+ readonly BlkioDeviceReadBps?: readonly ({
12975
+ readonly Path?: string | undefined;
12976
+ readonly Rate?: number | undefined;
12977
+ } | null)[] | null | undefined;
12978
+ readonly BlkioDeviceWriteBps?: readonly ({
12979
+ readonly Path?: string | undefined;
12980
+ readonly Rate?: number | undefined;
12981
+ } | null)[] | null | undefined;
12982
+ readonly BlkioDeviceReadIOps?: readonly ({
12983
+ readonly Path?: string | undefined;
12984
+ readonly Rate?: number | undefined;
12985
+ } | null)[] | null | undefined;
12986
+ readonly BlkioDeviceWriteIOps?: readonly ({
12987
+ readonly Path?: string | undefined;
12988
+ readonly Rate?: number | undefined;
12989
+ } | null)[] | null | undefined;
12990
+ readonly CpuPeriod?: number | null | undefined;
12991
+ readonly CpuQuota?: number | null | undefined;
12992
+ readonly CpuRealtimePeriod?: number | null | undefined;
12993
+ readonly CpuRealtimeRuntime?: number | null | undefined;
12994
+ readonly CpusetCpus?: string | null | undefined;
12995
+ readonly CpusetMems?: string | null | undefined;
12996
+ readonly Devices?: readonly ({
12997
+ readonly PathOnHost?: string | undefined;
12998
+ readonly PathInContainer?: string | undefined;
12999
+ readonly CgroupPermissions?: string | undefined;
13000
+ } | null)[] | null | undefined;
13001
+ readonly DeviceCgroupRules?: readonly string[] | null | undefined;
13002
+ readonly DeviceRequests?: readonly ({
13003
+ readonly Driver?: string | undefined;
13004
+ readonly Count?: number | undefined;
13005
+ readonly DeviceIDs?: readonly string[] | null | undefined;
13006
+ readonly Capabilities?: readonly (readonly string[] | null)[] | null | undefined;
13007
+ readonly Options?: {
13008
+ readonly [x: string]: string;
13009
+ } | null | undefined;
13010
+ } | null)[] | null | undefined;
13011
+ readonly KernelMemoryTCP?: number | null | undefined;
13012
+ readonly MemoryReservation?: number | null | undefined;
13013
+ readonly MemorySwap?: number | null | undefined;
13014
+ readonly MemorySwappiness?: number | null | undefined;
13015
+ readonly NanoCpus?: number | null | undefined;
13016
+ readonly OomKillDisable?: boolean | null | undefined;
13017
+ readonly Init?: boolean | null | undefined;
13018
+ readonly PidsLimit?: number | null | undefined;
13019
+ readonly Ulimits?: readonly ({
13020
+ readonly Name?: string | undefined;
13021
+ readonly Soft?: number | undefined;
13022
+ readonly Hard?: number | undefined;
13023
+ } | null)[] | null | undefined;
13024
+ readonly CpuCount?: number | null | undefined;
13025
+ readonly CpuPercent?: number | null | undefined;
13026
+ readonly IOMaximumIOps?: number | null | undefined;
13027
+ readonly IOMaximumBandwidth?: number | null | undefined;
13280
13028
  readonly RestartPolicy?: {
13281
13029
  readonly Name?: RestartPolicy_Name | undefined;
13282
13030
  readonly MaximumRetryCount?: number | undefined;