Update duokaixianzhiban.sh

This commit is contained in:
smeb y 2024-03-22 09:04:53 +08:00 committed by GitHub
parent b07538707e
commit 93fd4167ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ else
fi
# 拉取Docker镜像
docker pull nezha123/titan-edge:1.2
docker pull nezha123/titan-edge:1.1
# 创建映像文件存放目录
mkdir -p $volume_dir
@ -64,7 +64,7 @@ do
echo "$volume_path $mount_point ext4 loop,defaults 0 0" | sudo tee -a /etc/fstab
# 运行容器并设置重启策略为always
container_id=$(docker run -d --restart always -v $mount_point:/root/.titanedge/storage --name "titan$i" nezha123/titan-edge:1.2)
container_id=$(docker run -d --restart always -v $mount_point:/root/.titanedge/storage --name "titan$i" nezha123/titan-edge:1.1)
echo "节点 titan$i 已经启动 容器ID $container_id"