update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user