Skip to content

Commit 9dd9059

Browse files
committed
fix(docker): fix spec with real world data..
1 parent 05f509d commit 9dd9059

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

spec/docker-v1.51-patched.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8520,6 +8520,7 @@ components:
85208520
[{"Path": "device_path", "Weight": weight}]
85218521
```
85228522
type: array
8523+
nullable: true
85238524
items:
85248525
type: object
85258526
properties:
@@ -8536,6 +8537,7 @@ components:
85368537
[{"Path": "device_path", "Rate": rate}]
85378538
```
85388539
type: array
8540+
nullable: true
85398541
items:
85408542
$ref: "#/components/schemas/ThrottleDevice"
85418543
BlkioDeviceWriteBps:
@@ -8546,6 +8548,7 @@ components:
85468548
[{"Path": "device_path", "Rate": rate}]
85478549
```
85488550
type: array
8551+
nullable: true
85498552
items:
85508553
$ref: "#/components/schemas/ThrottleDevice"
85518554
BlkioDeviceReadIOps:
@@ -8556,6 +8559,7 @@ components:
85568559
[{"Path": "device_path", "Rate": rate}]
85578560
```
85588561
type: array
8562+
nullable: true
85598563
items:
85608564
$ref: "#/components/schemas/ThrottleDevice"
85618565
BlkioDeviceWriteIOps:
@@ -8566,6 +8570,7 @@ components:
85668570
[{"Path": "device_path", "Rate": rate}]
85678571
```
85688572
type: array
8573+
nullable: true
85698574
items:
85708575
$ref: "#/components/schemas/ThrottleDevice"
85718576
CpuPeriod:
@@ -8602,18 +8607,21 @@ components:
86028607
Devices:
86038608
description: A list of devices to add to the container.
86048609
type: array
8610+
nullable: true
86058611
items:
86068612
$ref: "#/components/schemas/DeviceMapping"
86078613
DeviceCgroupRules:
86088614
description: a list of cgroup rules to apply to the container
86098615
type: array
8616+
nullable: true
86108617
items:
86118618
type: string
86128619
example: c 13:* rwm
86138620
DeviceRequests:
86148621
description: |
86158622
A list of requests for devices to be sent to device drivers.
86168623
type: array
8624+
nullable: true
86178625
items:
86188626
$ref: "#/components/schemas/DeviceRequest"
86198627
KernelMemoryTCP:
@@ -8648,14 +8656,17 @@ components:
86488656
Tune a container's memory swappiness behavior. Accepts an integer
86498657
between 0 and 100.
86508658
type: integer
8659+
nullable: true
86518660
format: int64
86528661
minimum: 0
86538662
maximum: 100
86548663
NanoCpus:
8664+
nullable: true
86558665
description: CPU quota in units of 10<sup>-9</sup> CPUs.
86568666
type: integer
86578667
format: int64
86588668
OomKillDisable:
8669+
nullable: true
86598670
description: Disable OOM Killer for the container.
86608671
type: boolean
86618672
Init:
@@ -8682,6 +8693,7 @@ components:
86828693
{"Name": "nofile", "Soft": 1024, "Hard": 2048}
86838694
```
86848695
type: array
8696+
nullable: true
86858697
items:
86868698
type: object
86878699
properties:
@@ -8695,6 +8707,7 @@ components:
86958707
description: Hard limit
86968708
type: integer
86978709
CpuCount:
8710+
nullable: true
86988711
description: >
86998712
The number of usable CPUs (Windows only).
87008713

@@ -8718,16 +8731,19 @@ components:
87188731
`CPUShares`, and `CPUPercent` last.
87198732
type: integer
87208733
format: int64
8734+
nullable: true
87218735
IOMaximumIOps:
87228736
description: Maximum IOps for the container system drive (Windows only)
87238737
type: integer
87248738
format: int64
8739+
nullable: true
87258740
IOMaximumBandwidth:
87268741
description: |
87278742
Maximum IO in bytes per second for the container system drive
87288743
(Windows only).
87298744
type: integer
87308745
format: int64
8746+
nullable: true
87318747
Limit:
87328748
description: >
87338749
An object describing a limit on resources which can be requested by a
@@ -8927,6 +8943,7 @@ components:
89278943
properties:
89288944
Binds:
89298945
type: array
8946+
nullable: true
89308947
description: >
89318948
A list of volume bindings for this container. Each volume
89328949
binding
@@ -9028,6 +9045,7 @@ components:
90289045
type: string
90299046
description: Driver that this container uses to mount volumes.
90309047
VolumesFrom:
9048+
nullable: true
90319049
type: array
90329050
description: >
90339051
A list of volumes to inherit from another container, specified
@@ -9037,6 +9055,7 @@ components:
90379055
items:
90389056
type: string
90399057
Mounts:
9058+
nullable: true
90409059
description: |
90419060
Specification for mounts to be added to the container.
90429061
type: array
@@ -9056,6 +9075,7 @@ components:
90569075
- 64
90579076
nullable: true
90589077
Annotations:
9078+
nullable: true
90599079
type: object
90609080
description: |
90619081
Arbitrary non-identifying metadata attached to container and
@@ -9064,13 +9084,15 @@ components:
90649084
type: string
90659085
CapAdd:
90669086
type: array
9087+
nullable: true
90679088
description: |
90689089
A list of kernel capabilities to add to the container. Conflicts
90699090
with option 'Capabilities'.
90709091
items:
90719092
type: string
90729093
CapDrop:
90739094
type: array
9095+
nullable: true
90749096
description: >
90759097
A list of kernel capabilities to drop from the container.
90769098
Conflicts
@@ -9097,21 +9119,25 @@ components:
90979119
or `"host"`, depending on daemon version, kernel support and configuration.
90989120
Dns:
90999121
type: array
9122+
nullable: true
91009123
description: A list of DNS servers for the container to use.
91019124
items:
91029125
type: string
91039126
DnsOptions:
91049127
type: array
9128+
nullable: true
91059129
description: A list of DNS options.
91069130
items:
91079131
type: string
91089132
DnsSearch:
91099133
type: array
9134+
nullable: true
91109135
description: A list of DNS search domains.
91119136
items:
91129137
type: string
91139138
ExtraHosts:
91149139
type: array
9140+
nullable: true
91159141
description: >
91169142
A list of hostnames/IP mappings to add to the container's
91179143
`/etc/hosts`
@@ -9121,12 +9147,14 @@ components:
91219147
type: string
91229148
GroupAdd:
91239149
type: array
9150+
nullable: true
91249151
description: >
91259152
A list of additional groups that the container process will run
91269153
as.
91279154
items:
91289155
type: string
91299156
IpcMode:
9157+
nullable: true
91309158
type: string
91319159
description: >
91329160
IPC sharing mode for the container. Possible values are:
@@ -9147,22 +9175,26 @@ components:
91479175

91489176
or `"shareable"`, depending on daemon version and configuration.
91499177
Cgroup:
9178+
nullable: true
91509179
type: string
91519180
description: Cgroup to use for the container.
91529181
Links:
91539182
type: array
9183+
nullable: true
91549184
description: >
91559185
A list of links for the container in the form
91569186
`container_name:alias`.
91579187
items:
91589188
type: string
91599189
OomScoreAdj:
9190+
nullable: true
91609191
type: integer
91619192
description: |
91629193
An integer value containing the score given to the container in
91639194
order to tune OOM killer preferences.
91649195
example: 500
91659196
PidMode:
9197+
nullable: true
91669198
type: string
91679199
description: >
91689200
Set the PID (Process) Namespace mode for the container. It can
@@ -9646,6 +9678,7 @@ components:
96469678
Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
96479679
type: string
96489680
example: docker0
9681+
nullable: true
96499682
SandboxID:
96509683
description: SandboxID uniquely represents a container's network stack.
96519684
type: string
@@ -11011,6 +11044,7 @@ components:
1101111044
IPAMConfig:
1101211045
$ref: "#/components/schemas/EndpointIPAMConfig"
1101311046
Links:
11047+
nullable: true
1101411048
type: array
1101511049
items:
1101611050
type: string
@@ -11025,6 +11059,7 @@ components:
1102511059
example: 02:42:ac:11:00:04
1102611060
Aliases:
1102711061
type: array
11062+
nullable: true
1102811063
items:
1102911064
type: string
1103011065
example:
@@ -11112,6 +11147,7 @@ components:
1111211147

1111311148
`my.ctr.testnet`.
1111411149
type: array
11150+
nullable: true
1111511151
items:
1111611152
type: string
1111711153
example:
@@ -12674,6 +12710,7 @@ components:
1267412710
type: array
1267512711
items:
1267612712
$ref: "#/components/schemas/NetworkAttachmentConfig"
12713+
nullable: true
1267712714
LogDriver:
1267812715
description: |
1267912716
Specifies the log driver to use for tasks created from this spec. If
@@ -13004,6 +13041,7 @@ components:
1300413041
type: array
1300513042
items:
1300613043
$ref: "#/components/schemas/NetworkAttachmentConfig"
13044+
nullable: true
1300713045
EndpointSpec:
1300813046
$ref: "#/components/schemas/EndpointSpec"
1300913047
EndpointPortConfig:
@@ -15587,6 +15625,7 @@ components:
1558715625
description: |
1558815626
Discoverable alternate names for the service on this network.
1558915627
type: array
15628+
nullable: true
1559015629
items:
1559115630
type: string
1559215631
DriverOpts:

0 commit comments

Comments
 (0)