1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
This commit is contained in:
2019-12-04 20:29:53 +08:00
parent 1553d75352
commit 035dd0df5f
6 changed files with 48 additions and 19 deletions

11
sbin/start_agent_master.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
docker service create \
--name yao-agent-master \
--network yao-net \
--constraint node.role==manager \
--mode global \
--detach=true \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
quickdeploy/yao-agent-master:dev