Docker节点有哪些可能的状态?

时间:2016-10-14 08:53:21

标签: docker

运行CREATE TABLE orders ( DateCreated datetime, OrderID int, Price float, Months int ); INSERT INTO orders VALUES (2013-03-05, 1, 49.9500, 12), (2013-04-01, 2, 5.9500, 1), (2013-04-08, 3, 7.1100, 12), (2013-05-15, 4, 42.9500, 3), (2013-06-12, 5, 13.9850, 6), (2013-06-27, 6, 7.1100, 6), (2013-07-29, 7, 21.92500, 3) 时,有一个STATUS字段。 什么是可能的节点状态而不是准备好了? 这些信息写在哪里?不应该在https://docs.docker.com/engine/reference/commandline/node_ls/提供其文档吗?

2 个答案:

答案 0 :(得分:4)

这些是node type

的可能状态
const (
    NodeStateUnknown NodeState = "unknown"
    NodeStateDown NodeState = "down"
    NodeStateReady NodeState = "ready"
    NodeStateDisconnected NodeState = "disconnected"
)

您通常只会看到readydown(即使您在某个节点上swarm leave,它显示为down),所以我不确定是什么触发disconnected

是的,这应该在文档中 - 它们与GitHub相关联,因此您可以edit该页面或submit an issue

答案 1 :(得分:1)

它们是:UnknownDownReadyDisconnected

请参阅docker/swarm - node.go