You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Health stores information about the container's healthcheck results.
669
+
type: "object"
670
+
properties:
671
+
Status:
672
+
description: |
673
+
Status is one of `none`, `starting`, `healthy` or `unhealthy`
674
+
675
+
- "none" Indicates there is no healthcheck
676
+
- "starting" Starting indicates that the container is not yet ready
677
+
- "healthy" Healthy indicates that the container is running correctly
678
+
- "unhealthy" Unhealthy indicates that the container has a problem
679
+
type: "string"
680
+
enum:
681
+
- "none"
682
+
- "starting"
683
+
- "healthy"
684
+
- "unhealthy"
685
+
example: "healthy"
686
+
FailingStreak:
687
+
description: "FailingStreak is the number of consecutive failures"
688
+
type: "integer"
689
+
example: 0
690
+
Log:
691
+
type: "array"
692
+
description: |
693
+
Log contains the last few results (oldest first)
694
+
items:
695
+
x-nullable: true
696
+
$ref: "#/definitions/HealthcheckResult"
697
+
698
+
HealthcheckResult:
699
+
description: |
700
+
HealthcheckResult stores information about a single run of a healthcheck probe
701
+
type: "object"
702
+
properties:
703
+
Start:
704
+
description: |
705
+
Date and time at which this check started in
706
+
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
707
+
type: "string"
708
+
format: "date-time"
709
+
example: "2020-01-04T10:44:24.496525531Z"
710
+
End:
711
+
description: |
712
+
Date and time at which this check ended in
713
+
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
714
+
type: "string"
715
+
format: "dateTime"
716
+
example: "2020-01-04T10:45:21.364524523Z"
717
+
ExitCode:
718
+
description: |
719
+
ExitCode meanings:
720
+
721
+
- `0` healthy
722
+
- `1` unhealthy
723
+
- `2` reserved (considered unhealthy)
724
+
- other values: error running probe
725
+
type: "integer"
726
+
example: 0
727
+
Output:
728
+
description: "Output from last check"
729
+
type: "string"
730
+
666
731
HostConfig:
667
732
description: "Container configuration that depends on the host we are running on"
668
733
allOf:
@@ -1078,6 +1143,42 @@ definitions:
1078
1143
items:
1079
1144
type: "string"
1080
1145
1146
+
NetworkingConfig:
1147
+
description: |
1148
+
NetworkingConfig represents the container's networking configuration for
1149
+
each of its interfaces.
1150
+
It is used for the networking configs specified in the `docker create`
1151
+
and `docker network connect` commands.
1152
+
type: "object"
1153
+
properties:
1154
+
EndpointsConfig:
1155
+
description: |
1156
+
A mapping of network name to endpoint configuration for that network.
1157
+
type: "object"
1158
+
additionalProperties:
1159
+
$ref: "#/definitions/EndpointSettings"
1160
+
example:
1161
+
# putting an example here, instead of using the example values from
1162
+
# /definitions/EndpointSettings, because containers/create currently
1163
+
# does not support attaching to multiple networks, so the example request
1164
+
# would be confusing if it showed that multiple networks can be contained
1165
+
# in the EndpointsConfig.
1166
+
# TODO remove once we support multiple networks on container create (see https://github.com/moby/moby/blob/07e6b843594e061f82baa5fa23c2ff7d536c2a05/daemon/create.go#L323)
1167
+
EndpointsConfig:
1168
+
isolated_nw:
1169
+
IPAMConfig:
1170
+
IPv4Address: "172.20.30.33"
1171
+
IPv6Address: "2001:db8:abcd::3033"
1172
+
LinkLocalIPs:
1173
+
- "169.254.34.68"
1174
+
- "fe80::3468"
1175
+
Links:
1176
+
- "container_1"
1177
+
- "container_2"
1178
+
Aliases:
1179
+
- "server_x"
1180
+
- "server_y"
1181
+
1081
1182
NetworkSettings:
1082
1183
description: "NetworkSettings exposes the network settings in the API"
1083
1184
type: "object"
@@ -3165,14 +3266,7 @@ definitions:
3165
3266
description: "Specifies which networks the service should attach to."
3166
3267
type: "array"
3167
3268
items:
3168
-
type: "object"
3169
-
properties:
3170
-
Target:
3171
-
type: "string"
3172
-
Aliases:
3173
-
type: "array"
3174
-
items:
3175
-
type: "string"
3269
+
$ref: "#/definitions/NetworkAttachmentConfig"
3176
3270
LogDriver:
3177
3271
description: |
3178
3272
Specifies the log driver to use for tasks created from this spec. If
@@ -3449,14 +3543,8 @@ definitions:
3449
3543
description: "Specifies which networks the service should attach to."
3450
3544
type: "array"
3451
3545
items:
3452
-
type: "object"
3453
-
properties:
3454
-
Target:
3455
-
type: "string"
3456
-
Aliases:
3457
-
type: "array"
3458
-
items:
3459
-
type: "string"
3546
+
$ref: "#/definitions/NetworkAttachmentConfig"
3547
+
3460
3548
EndpointSpec:
3461
3549
$ref: "#/definitions/EndpointSpec"
3462
3550
@@ -3834,6 +3922,71 @@ definitions:
3834
3922
Spec:
3835
3923
$ref: "#/definitions/ConfigSpec"
3836
3924
3925
+
ContainerState:
3926
+
description: |
3927
+
ContainerState stores container's running state. It's part of ContainerJSONBase
3928
+
and will be returned by the "inspect" command.
3929
+
type: "object"
3930
+
properties:
3931
+
Status:
3932
+
description: |
3933
+
String representation of the container state. Can be one of "created",
3934
+
"running", "paused", "restarting", "removing", "exited", or "dead".
0 commit comments