mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
update
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run \
|
||||
-d \
|
||||
--gpus all \
|
||||
--name yao-agent \
|
||||
--pid=host \
|
||||
-p 8000:8000 \
|
||||
-e ClientID=1 \
|
||||
-e ClientHost=yao-agent \
|
||||
-e KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \
|
||||
--add-host=kafka-node1:192.168.0.1 \
|
||||
--add-host=kafka-node2:192.168.0.2 \
|
||||
--add-host=kafka-node3:192.168.0.3 \
|
||||
--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 \
|
||||
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
|
||||
quickdeploy/yao-agent
|
||||
|
||||
#--pid=host \
|
||||
|
||||
Reference in New Issue
Block a user