mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
13 lines
363 B
Bash
Executable File
13 lines
363 B
Bash
Executable File
#!/bin/bash
|
|
|
|
docker service create \
|
|
--name yao-agent-master \
|
|
--hostname yao-agent-master \
|
|
--constraint node.role==manager \
|
|
--network yao-net \
|
|
--replicas 1 \
|
|
--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
|