Update duokai.sh

This commit is contained in:
smeb y 2024-06-28 17:42:30 +08:00 committed by GitHub
parent 1d0fa19c94
commit eb133e035e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ else
fi fi
# 拉取Docker镜像 # 拉取Docker镜像
docker pull nezha123/titan-edge:1.5 docker pull nezha123/titan-edge:1.6
# 创建用户指定数量的容器 # 创建用户指定数量的容器
for ((i=1; i<=container_count; i++)) for ((i=1; i<=container_count; i++))
@ -63,7 +63,7 @@ do
mkdir -p "$storage_path" mkdir -p "$storage_path"
# 运行容器并设置重启策略为always # 运行容器并设置重启策略为always
container_id=$(docker run -d --restart always -v "$storage_path:/root/.titanedge/storage" --name "titan$i" --net=host nezha123/titan-edge:1.5) container_id=$(docker run -d --restart always -v "$storage_path:/root/.titanedge/storage" --name "titan$i" --net=host nezha123/titan-edge:1.6)
echo "节点 titan$i 已经启动 容器ID $container_id" echo "节点 titan$i 已经启动 容器ID $container_id"