2017-02-01 00:45:59 +00:00
|
|
|
{
|
|
|
|
"description": "Open Container Runtime State Schema",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"id": "https://opencontainers.org/schema/state",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"ociVersion": {
|
|
|
|
"id": "https://opencontainers.org/schema/runtime/state/ociVersion",
|
|
|
|
"$ref": "defs.json#/definitions/ociVersion"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"id": "https://opencontainers.org/schema/runtime/state/id",
|
|
|
|
"description": "the container's ID",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"id": "https://opencontainers.org/schema/runtime/state/status",
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
2017-04-12 23:12:04 +00:00
|
|
|
"creating",
|
2017-02-01 00:45:59 +00:00
|
|
|
"created",
|
|
|
|
"running",
|
|
|
|
"stopped"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"pid": {
|
|
|
|
"id": "https://opencontainers.org/schema/runtime/state/pid",
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
},
|
2017-04-12 23:12:04 +00:00
|
|
|
"bundle": {
|
|
|
|
"id": "https://opencontainers.org/schema/runtime/state/bundle",
|
2017-02-01 00:45:59 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"annotations": {
|
|
|
|
"$ref": "defs.json#/definitions/annotations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"ociVersion",
|
|
|
|
"id",
|
|
|
|
"status",
|
|
|
|
"pid",
|
2017-04-12 23:12:04 +00:00
|
|
|
"bundle"
|
2017-02-01 00:45:59 +00:00
|
|
|
]
|
|
|
|
}
|