
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Welcome to the home of Mainsail, a highly modular, TypeScript-based, layer 1 *** protocol. Mainsail is the next evolution of the 'ARK Core' *** protocol and features a new consensus engine that greatly improves the finality, security, and reliability of our *** solution.
Learn more about Mainsail Core on the official GitHub repository https://github.com/ArkEcosystem/mainsail
Run Mainsail Core node using https://docs.docker.com/compose/
TestNet
bashmkdir -p ~/mainsail-docker/core cd ~/mainsail-docker/core
Create docker network:
bashdocker network create core
Create file
docker-compose.ymlwith the following content:
bashservices: core: image: arkecosystem/mainsail-core:testnet container_name: mainsail-testnet restart: always ports: - "4000:4000" - "127.0.0.1:4004:4004" - "127.0.0.1:4006:4006" - "4007:4007" - "4008:4008" cap_add: - SYS_NICE - SYS_RESOURCE - SYS_TIME volumes: - ~/.config/mainsail:/home/node/.config/mainsail - ~/.local/share/mainsail:/home/node/.local/share/mainsail - ~/.local/state/mainsail:/home/node/.local/state/mainsail - /etc/localtime:/etc/localtime:ro - ./enc:/run/secrets networks: - core env_file: testnet.env tty: true volumes: core: networks: core: external: true
Create file
testnet.envwith the following content:
bashMODE=relay TOKEN=ark NETWORK=testnet #Set `DB_REST=true` for syncing from scratch DB_RESET=false #API - set `API=true` if you want to run an API server API=false CORE_DB_HOST=postgres-api CORE_DB_PORT=5432 CORE_DB_DATABASE=api_testnet CORE_DB_USERNAME=node CORE_DB_PASSWORD=password #Core variables MAINSAIL_LOG_LEVEL=debug MAINSAIL_LOG_LEVEL_FILE=info MAINSAIL_P2P_HOST=0.0.0.0 MAINSAIL_P2P_PORT=4000 MAINSAIL_WEBHOOKS_HOST=0.0.0.0 MAINSAIL_WEBHOOKS_PORT=4004 MAINSAIL_API_DEV_ENABLED=true MAINSAIL_API_DEV_HOST=0.0.0.0 MAINSAIL_API_DEV_PORT=4006
[!NOTE] If you want to run a Validator node set
MODE=validatorin yourtestnet.env. Additionally you would need to protect your validator private key with a password and encrypt it. To do so download the https://github.com/ArkEcosystem/mainsail/raw/develop/docker/testnet/core/enc.sh and run it.
Start:
bashdocker-compose up -d
Monitor:
bashdocker logs --tail 50 mainsail-testnet -f
Stop and remove:
bashdocker-compose down -v --rmi all
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务