Update Titan.sh
This commit is contained in:
parent
8af94b276f
commit
afdf75e230
4
Titan.sh
4
Titan.sh
@ -36,7 +36,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 拉取Docker镜像
|
# 拉取Docker镜像
|
||||||
docker pull nezha123/titan-edge:1.4
|
docker pull nezha123/titan-edge:1.7_amd64
|
||||||
|
|
||||||
# 创建用户指定数量的容器
|
# 创建用户指定数量的容器
|
||||||
for i in $(seq 1 $container_count)
|
for i in $(seq 1 $container_count)
|
||||||
@ -54,7 +54,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.4)
|
container_id=$(docker run -d --restart always -v "$storage_path:/root/.titanedge/storage" --name "titan$i" --net=host nezha123/titan-edge:1.7_amd64)
|
||||||
|
|
||||||
echo "节点 titan$i 已经启动 容器ID $container_id"
|
echo "节点 titan$i 已经启动 容器ID $container_id"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user