This commit is contained in:
Your Name
2024-07-02 07:43:07 +00:00
parent 6df4ef5f17
commit 4bf09ad538
2 changed files with 69 additions and 2 deletions

View File

@@ -18,10 +18,20 @@ services:
kind: gpus
value: 1
placement:
constraints: [node.platform.os == linux]
constraints:
- node.labels.gpu == true
cap_add:
- IPC_LOCK
networks:
default:
driver: overlay
driver: overlay
# 为节点添加标签:
# docker node ls
# docker node update --label-add gpu=true node1
# docker stack deploy -c docker-compose.yml rdma_stack