我有docker文件,并看到有一个约束是使用
node.labels.imaging ==真
有人能澄清成像约束是如何工作的吗?
我在群中的节点上看到了这个链接,但是可以找到任何关于成像的描述。
发布于 2017-09-05 17:42:41
node.labels.imaging == true在该示例中,图像是标签的名称。节点标签是用户定义的,因此您需要自己定义“图像”标签,并在您希望上述约束有效的节点上将其设置为true。你可以这样做:
docker node update --label-add imaging=true $your_node_namehttps://stackoverflow.com/questions/46059455
复制相似问题