
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://raw.githubusercontent.com/subspacecloud/subspace/master/screenshot1.png?cachebust=8923409243
https://raw.githubusercontent.com/subspacecloud/subspace/master/screenshot1.png
https://raw.githubusercontent.com/subspacecloud/subspace/master/screenshot2.png
https://raw.githubusercontent.com/subspacecloud/subspace/master/screenshot3.png
https://raw.githubusercontent.com/subspacecloud/subspace/master/screenshot4.png
Portal Cloud is a hosting service that enables anyone to run open source cloud applications.
Sign up for Portal Cloud and get $15 free credit with code Portal15.
Running Subspace on a VPS is designed to be as simple as possible.
Recommended Specs
Create a DNS A record in your domain pointing to your server's IP address.
Example: subspace.example.com A 172.16.1.1
Subspace runs a TLS ("SSL") https server on port 443/tcp. It also runs a standard web server on port 80/tcp to redirect clients to the secure server. Port 80/tcp is required for Let's Encrypt verification.
Requirements
Example usage:
bash$ subspace --http-host subspace.example.com
bash-backlink string backlink (optional) -datadir string data dir (default "/data") -debug debug mode -help display help and exit -http-addr string HTTP listen address (default ":80") -http-host string HTTP host -http-insecure enable sessions cookies for http (no https) not recommended -letsencrypt enable TLS using Let's Encrypt on port 443 (default true) -version display version and exit
Install *** on the host
The container expects *** to be installed on the host. The official image is subspacecloud/subspace.
bashadd-apt-repository -y ppa:wireguard/wireguard apt-get update apt-get install -y wireguard # Remove dnsmasq because it will run inside the container. apt-get remove -y dnsmasq # Set DNS server. echo nameserver 1.1.1.1 >/etc/resolv.conf # Load modules. modprobe wireguard modprobe iptable_nat modprobe ip6table_nat # Enable IP forwarding sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv6.conf.all.forwarding=1
Follow the official Docker install instructions: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/
Make sure to change the --env SUBSPACE_HTTP_HOST to your publicly accessible domain name.
bash# Your data directory should be bind-mounted as `/data` inside the container using the `--volume` flag. $ mkdir /data docker create \ --name subspace \ --restart always \ --network host \ --cap-add NET_ADMIN \ --volume /usr/bin/wg:/usr/bin/wg \ --volume /data:/data \ --env SUBSPACE_HTTP_HOST=subspace.example.com \ subspacecloud/subspace:latest $ sudo docker start subspace $ sudo docker logs subspace <log output>
Updating the container image
Pull the latest image, remove the container, and re-create the container as explained above.
bash# Pull the latest image $ sudo docker pull subspacecloud/subspace # Stop the container $ sudo docker stop subspace # Remove the container (data is stored on the mounted volume) $ sudo docker rm subspace # Re-create and start the container $ sudo docker create ... (see above)
Email ***
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务