/
containerstate.json
91 lines (91 loc) · 2.42 KB
/
containerstate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
"terminated": {
"required": [
"exitCode"
],
"description": "ContainerStateTerminated is a terminated state of a container.",
"properties": {
"containerID": {
"type": [
"string",
"null"
],
"description": "Container's ID in the format 'docker://<container_id>'"
},
"signal": {
"type": "integer",
"description": "Signal from the last termination of the container",
"format": "int32"
},
"reason": {
"type": [
"string",
"null"
],
"description": "(brief) reason from the last termination of the container"
},
"finishedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"startedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"message": {
"type": [
"string",
"null"
],
"description": "Message regarding the last termination of the container"
},
"exitCode": {
"type": "integer",
"description": "Exit status from the last termination of the container",
"format": "int32"
}
}
},
"running": {
"description": "ContainerStateRunning is a running state of a container.",
"properties": {
"startedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
},
"waiting": {
"description": "ContainerStateWaiting is a waiting state of a container.",
"properties": {
"message": {
"type": [
"string",
"null"
],
"description": "Message regarding why the container is not yet running."
},
"reason": {
"type": [
"string",
"null"
],
"description": "(brief) reason the container is not yet running."
}
}
}
}
}