如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Dockerized builtin Anki Sync Server (2.1.57+)
| Platform | Version | Release |
|---|---|---|
| Linux | 2.1.57-qt6 | 2.1.57 |
| AnkiDroid | 2.15.6 | 2.1.57 |
Reference https://docs.ankiweb.net/sync-server.html for details on environment variables, adding multiple users, ect.
Security is your problem: this normally runs on an unencrypted port 8080. Setting up a reverse proxy with HTTPS is recommended. Sample configs below.
Set the Self-hosted sync server option under Preferences -> Syncing on Desktop. For AnkiDroid, use the same URL (with trailing slash) for the main sync URL and add /msync/ for the media URL (check the above documentation, this may change in the future). Make sure you set the protocol (http://) whenever you enter this address.
Note that 2.1.57 is not compatible with 2.1.57-1+ as the location of the virtual environment and data directory was separated (strongly recommend deleting the volume and re-syncing).
shelldocker run --name anki-sync-server -p 8080:8080 zweizs/anki-sync-server:latest
/data in the container is used as a volume. If you change SYNC_BASE, you'll need to make sure to add a volume at the newly specified location.
| Variable | Default Value |
|---|---|
SYNC_USER1 | user:password |
SYNC_BASE | /data |
SYNC_HOST | 0.0.0.0 |
SYNC_PORT | 8080 |
MAX_SYNC_UPLOAD_MEGS | 100 |
VENV_ROOT | /venv |
yamllabels: traefik.http.services.anki.loadbalancer.server.port: "8080"
This would allow connecting to the Anki server through your main entrypoint (normally port 80/443).
This has not been tested
Set VIRTUAL_PORT environment variable to 8080.
If it doesn't work, it's possible it needs HTTP 1.0 support (as the older community Anki sync servers did) in which case try placing the following in /etc/nginx/proxy.conf:
nginx# HTTP 1.0 support proxy_http_version 1.0; proxy_buffering off; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $proxy_connection; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto; proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl; proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port; proxy_set_header X-Forwarded-Path $request_uri; # Mitigate httpoxy attack proxy_set_header Proxy "";
anki-sync-server/v2.1.57I'm available for freelance, contracts, and consulting both remotely and in the Hudson Valley, NY (USA) area. Some more about me and what I can do for you.
Feel free to drop me a message at:
hi [a+] zweisolutions {●} com
https://github.com/ankitects/anki is licensed under https://github.com/ankitects/anki/blob/main/LICENSE
This repo is MIT
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 zweizs/anki-sync-server 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: