mirror of
https://github.com/docker/docs.git
synced 2026-10-31 10:34:26 +03:00
api: "Host Down" instead of "Pending" as a status
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -233,7 +233,7 @@ func getContainersJSON(c *context, w http.ResponseWriter, r *http.Request) {
|
||||
// `Status()` will generate a new one
|
||||
tmp.Status = container.Info.State.String()
|
||||
if !container.Engine.IsHealthy() {
|
||||
tmp.Status = "Pending"
|
||||
tmp.Status = "Host Down"
|
||||
}
|
||||
|
||||
// Overwrite labels with the ones we have in the config.
|
||||
|
||||
Reference in New Issue
Block a user