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

20 lines
499 B
Bash
Raw Normal View History

2019-04-16 10:14:49 +00:00
#!/bin/bash
docker run \
2019-12-04 12:29:53 +00:00
--gpus all \
2019-04-16 10:14:49 +00:00
--name yao-agent \
2019-12-04 12:29:53 +00:00
--network yao-net \
--network-alias $(hostname) \
--hostname $(hostname) \
-d \
--restart always \
--detach=true \
--env ClientID=$(hostname) \
--env ClientHost=$(hostname) \
--env KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
2019-04-16 10:14:49 +00:00
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
quickdeploy/yao-agent
2019-12-04 12:29:53 +00:00
#--pid=host \