- 给节点打标签
docker node update --label-add memory=high NODE_ID
- 给服务添加约束以使其任务调度到有特定标签的节点上
docker service update --constraint-add 'node.labels.memory == high' SERVICE_ID
上一篇

2024-01-24
下一篇

2023-12-21