mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Windows: Add servicing
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
+16
-1
@@ -104,4 +104,19 @@ For more information about tooling to generate a gMSA, see [Deployment Overview]
|
||||
|
||||
|
||||
[gMSAOverview]: https://aka.ms/windowscontainers/manage-serviceaccounts
|
||||
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools
|
||||
[gMSATooling]: https://aka.ms/windowscontainers/credentialspec-tools
|
||||
|
||||
|
||||
## <a name="configWindowsServicing" />Servicing
|
||||
|
||||
When a container terminates, the Host Compute Service indicates if a Windows update servicing operation is pending.
|
||||
You can indicate that a container should be started in a mode to apply pending servicing operations via the OPTIONAL `servicing` field of the Windows configuration.
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```json
|
||||
"windows": {
|
||||
"servicing": true
|
||||
}
|
||||
```
|
||||
@@ -69,6 +69,10 @@
|
||||
"credentialspec": {
|
||||
"id": "https://opencontainers.org/schema/bundle/windows/credentialspec",
|
||||
"type": "object"
|
||||
},
|
||||
"servicing": {
|
||||
"id": "https://opencontainers.org/schema/bundle/windows/servicing",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -434,6 +434,8 @@ type Windows struct {
|
||||
Resources *WindowsResources `json:"resources,omitempty"`
|
||||
// CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.
|
||||
CredentialSpec interface{} `json:"credentialspec,omitempty"`
|
||||
// Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.
|
||||
Servicing bool `json:"servicing,omitempty"`
|
||||
}
|
||||
|
||||
// WindowsResources has container runtime resource constraints for containers running on Windows.
|
||||
|
||||
Reference in New Issue
Block a user