1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
YAO-docs/sbin/start_agent_master.sh

13 lines
363 B
Bash
Raw Normal View History

2019-12-04 12:29:53 +00:00
#!/bin/bash
docker service create \
--name yao-agent-master \
2020-07-08 13:26:46 +00:00
--hostname yao-agent-master \
2019-12-04 12:29:53 +00:00
--constraint node.role==manager \
2020-07-08 13:26:46 +00:00
--network yao-net \
--replicas 1 \
2019-12-04 12:29:53 +00:00
--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