Update duokai.sh

This commit is contained in:
smeb y 2024-03-19 11:51:33 +08:00 committed by GitHub
parent 2407e6ea65
commit a7056dc7c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,13 +46,13 @@ do
# 运行容器并设置重启策略为always
container_id=$(docker run -d --restart always -v "$PWD/$storage:/root/.titanedge/storage" --name "titan$i" nezha123/titan-edge:1.1)
echo "Container titan$i started with ID $container_id"
echo "节点 titan$i 已经启动 容器ID $container_id"
sleep 15
sleep 30
# 进入容器并执行绑定和其他命令
docker exec -it $container_id bash -c "\
titan-edge bind --hash=$id https://api-test1.container1.titannet.io/api/v2/device/binding"
done
echo "==============================所有容器均已设置并启动===================================."
echo "==============================所有节点均已设置并启动===================================."