
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A Dash Core docker image.
https://hub.docker.com/r/uphold/dash-core https://hub.docker.com/r/uphold/dash-core https://hub.docker.com/r/uphold/dash-core https://hub.docker.com/r/uphold/dash-core
0.17.0.3, 0.17, latest (https://github.com/uphold/docker-dash-core/blob/master/0.17/Dockerfile)0.16.0.1, 0.16 (https://github.com/uphold/docker-dash-core/blob/master/0.16/Dockerfile)0.15.0.0, 0.15 (https://github.com/uphold/docker-dash-core/blob/master/0.15/Dockerfile)0.14.0.5-alpine, 0.14-alpine, alpine (https://github.com/uphold/docker-dash-core/blob/master/0.14/alpine/Dockerfile)0.14.0.5, 0.14 (https://github.com/uphold/docker-dash-core/blob/master/0.14/Dockerfile)0.12.2.3-alpine, 0.12-alpine (https://github.com/uphold/docker-dash-core/blob/master/0.12/alpine/Dockerfile)0.12.2.3, 0.12 (https://github.com/uphold/docker-dash-core/blob/master/0.12/Dockerfile)from https://github.com/***/dash/wiki
Dash: A Privacy-Centric -Currency []
This image contains the main binaries from the Dash Core project - dashd, dash-cli and dash-tx. It behaves like a binary, so you can pass any arguments to the image and they will be forwarded to the dashd binary:
sh$ docker run --rm -it uphold/dash-core \ -printtoconsole \ -regtest=1 \ -rpcallowip=172.17.0.0/16 \ -rpcpassword=bar \ -rpcuser=foo
By default, dashd will run as user dash for security reasons and with its default data dir (~/.dashcore). If you'd like to customize where dash-core stores its data, you must use the DASH_DATA environment variable. The directory will be automatically created with the correct permissions for the dash user and dash-core is automatically configured to use it.
sh$ docker run --env DASH_DATA=/var/lib/dash --rm -it uphold/dash-core \ -printtoconsole \ -regtest=1
You can also mount a directory it in a volume under /home/dash/.dashcore in case you want to access it on the host:
sh$ docker run -v ${PWD}/data:/home/dash/.dashcore -it --rm uphold/dash-core \ -printtoconsole \ -regtest=1
You can optionally create a service using docker-compose:
ymldash-core: image: uphold/dash-core command: -printtoconsole -regtest=1
There are two communications methods to interact with a running Dash Core daemon.
The first one is using a cookie-based local authentication. It doesn't require any special authentication information as running a process locally under the same user that was used to launch the Dash Core daemon allows it to read the cookie file previously generated by the daemon for clients. The downside of this method is that it requires local machine access.
The second option is making a remote procedure call using a username and password combination. This has the advantage of not requiring local machine access, but in order to keep your credentials safe you should use the newer rpcauth authentication mechanism.
Using cookie-based local authentication
Start by launch the Dash Core daemon:
sh❯ docker run --rm --name dash-server -it uphold/dash-core \ -printtoconsole \ -regtest=1
Then, inside the running dash-server container, locally execute the query to the daemon using dash-cli:
sh❯ docker exec --user dash dash-server dash-cli -regtest getmininginfo { "blocks": 0, "currentblocksize": 0, "currentblockweight": 0, "currentblocktx": 0, "difficulty": 4.656542373906925e-10, "errors": "", "networkhashps": 0, "pooledtx": 0, "chain": "regtest" }
In the background, dash-cli read the information automatically from /home/dash/.dashcore/regtest/.cookie. In production, the path would not contain the regtest part.
Using rpcauth for remote authentication
Before setting up remote authentication, you will need to generate the rpcauth line that will hold the credentials for the Dash Core daemon.
You can either do this yourself by constructing the line with the format <user>:<salt>$<hash> or use the official rpcuser.py script to generate this line for you, including a random password that is printed to the console.
Example:
sh❯ curl -sSL https://raw.githubusercontent.com/dashpay/dash/master/share/rpcuser/rpcuser.py | python - foo String to be appended to bitcoin.conf: rpcauth=foo:796d3d89ded5b826c7a4bf2ca8fe465$4cb1618e1552b414941783822b087b2df8c2b8bb1fa3dc441d9fa8f32d43e054 Your password: Yec3WkzEpXGNFRQgTCsdKYp8HO11Z6DaoOY8BvV4YhE=
Note that for each run, even if the username remains the same, the output will be always different as a new salt and password are generated.
Now that you have your credentials, you need to start the Dash Core daemon with the -rpcauth option. Alternatively, you could append the line to a dash.conf file and mount it on the container.
Let's opt for the Docker way:
sh❯ docker run --rm --name dash-server -it uphold/dash-core \ -printtoconsole \ -regtest=1 \ -rpcallowip=172.17.0.0/16 \ -rpcauth='foo:796d3d89ded5b826c7a4bf2ca8fe465$4cb1618e1552b414941783822b087b2df8c2b8bb1fa3dc441d9fa8f32d43e054'
Two important notes:
-rpcpassword, the content is hashed so even if the arguments would be exposed, they would not allow the ***er to get the actual password.You can now connect via dash-cli or any other https://github.com/uphold/dash-core. You will still have to define a username and password when connecting to the Dash Core RPC server.
To avoid any confusion about whether or not a remote call is being made, let's spin up another container to execute dash-cli and connect it via the Docker network using the password generated above:
sh❯ docker run --link dash-server --rm uphold/dash-core dash-cli -rpcconnect=dash-server -regtest -rpcuser=foo -rpcpassword='Yec3WkzEpXGNFRQgTCsdKYp8HO11Z6DaoOY8BvV4YhE=' getmininginfo { "blocks": 0, "currentblocksize": 0, "currentblockweight": 0, "currentblocktx": 0, "difficulty": 4.656542373906925e-10, "errors": "", "networkhashps": 0, "pooledtx": 0, "chain": "regtest" }
Done!
The uphold/dash-core image comes in multiple flavors:
uphold/dash-core:latestPoints to the latest release available of Dash Core. Occasionally pre-release versions will be included.
uphold/dash-core:<version>Based on Alpine Linux with Berkeley DB 4.8 (cross-compatible build), targets a specific version branch or release of Dash Core.
This image is officially supported on Docker version 1.12, with support for older versions provided on a best-effort basis.
https://github.com/***/dash/blob/master/COPYING for the software contained in this image.
https://github.com/uphold/docker-dash-core/blob/master/LICENSE for the https://hub.docker.com/r/uphold/dash-core docker project.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务