Update ElixirV3.sh

This commit is contained in:
smeb y 2024-08-31 13:45:09 +08:00 committed by GitHub
parent 23f55b12c3
commit 7aabb02362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,11 +51,23 @@ EOF
# 拉取 Docker 镜像
docker pull elixirprotocol/validator:v3
# 运行 Docker 容器
# 提示用户选择平台
read -p "您是否在Apple/ARM架构上运行(y/n): " is_arm
if [[ "$is_arm" == "y" ]]; then
# 在Apple/ARM架构上运行
docker run -it -d \
--env-file validator.env \
--name elixir \
--platform linux/amd64 \
elixirprotocol/validator:v3
else
# 默认运行
docker run -it -d \
--env-file validator.env \
--name elixir \
elixirprotocol/validator:v3
fi
}
# 查看Docker日志功能
@ -96,4 +108,3 @@ function main_menu() {
# 显示主菜单
main_menu