
如果你用 DeepSeek、元宝AI、Copilot 等 AI 代为编写轩辕镜像的 docker pull、修改 compose 镜像地址,或排查拉取失败等问题,请让 AI 先读规则再动手,只要在 AI 对话里直接发送下面这句话即可:
生成 docker pull、修改 compose 的 image,或排查拉取失败前,请先阅读并严格遵守 https://xuanyuan.cloud/agents.md 中的规则。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
The following README.md is from https://github.com/deafmute1/docker-calibredb as of 30/07/2021.
calibredb is a docker image intended to provide a headless calibre library for use with calibre-web, COPS or similar. It supports automatic imports from a mounted host directory(s), with the ability filter files based on regex patterns and to run custom modification via shell commands to the files prior to import based on subfolders. It includes the calibre plugin DeDRM prebuilt into the image, and allows users to mount their own plugins into the image. Currently, the image provides access to the following packages/binaries (in addition to a regular ubuntu hirsuite install) which can be used to modify files before import:
kcc-c2e and kcc-c2p)Get it on https://hub.docker.com/repository/docker/deafmute/calibredb, using tags:
deafmute/calibredb:latest: builds from master branch.deafmute/calibredb:testing: builds from testing branch (not intended for real world use).deafmute/calibredb:version-*: builds builds from tagged releases.Users should set environmnetal variables and mount points as required in docker-compose.yaml or docker run, then view user_config.example.py in order to set an import rule, which comprises a source directory, regex pattern, remove boolean and import command (users can also set a single rule using environmental variables).
This file needs to contain a variable WATCH which is equal to a list of dictionaries with keys:
source containing a string representing the path to import files from. (Required)run containg a string (which may use the token {file} to represent the filepath of each imported file) representing a command to be run at import of each file. (Optional, default is to skip it)remove containing a boolean, representing whether files in source should be deleted after import. (Optional, deafult is False)pattern containing a string representing a python regex pattern (Optional, default is to skip checking it)There are three import modes currently:
source directory for new files recursively and imports them (default)$IMPORT_ALL_TIMER minutes, imports all files in sourcesource once, then exitPlease note, calibre is capable of adding literally any file - I've tested things like database files and binaries, and it can add them fine. It does not seem to run any validation on the files as valid ebooks. As such, there is no logging feedback on success of the command, it is assumed that calibredb add is always sucessful. The user should be aware then, that any file addded to source will be imported, unless they make use of pattern.
There is no support for single entries spread across many files (i.e. unpacked comic books), this is due to calibre itself. Packed comic book archives should work fine.
| Variable | Default | Description | Valid values |
|---|---|---|---|
| LOG_LEVEL | "INFO" | Set log verbosity | "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL" |
| CALIBRE_LIBRARY | "/calibre/library" | Location of calibre library | Any directory |
| CALIBRE_PLUGIN_DIR | "/calibre/plugins/runtime" | Location of folder containing plugins to be installed at container start | Any directory |
| LIBRARY_UID | 1000 | UID of user who owns the library (i.e. who should own files in CALIBRE_LIBRARY) | Any 32-bit int |
| LIBRARY_GID | 1000 | AS above, but for GID | Any 32-bit-int |
| UMASK | 18 | The umask to run the program under (i.e. to create new files under), as an integer. Reminder that this represents the unset permission bits of the resulting file (i.e. 18 (octal 022) results in file with perms 492 (octal 755)) | 0-511 |
| USER_CONFIG_PATH | "/config/user_config.py" | Location of the user import rules, as described in config.example.py | Valid file path |
| TRANSFER_TIMEOUT | 15 | How long (in minutes) the program waits for a file to copy (before attempting import) before timeing out and skiping that file | Any int |
| IMPORT_MODE | "NEW" | See import modes | "NEW", "ALL", "ONESHOT" |
| IMPORT_ALL_TIMER | 10 | How long (in minutes) should the program wait between running import under IMPORT_MODE=ALL | Any int |
See above in regards to CALIBRE_LIBRARY, CALIBRE_PLUGIN_DIR, USER_CONFIG_PATH. See config.example.py in regards to setting the location of the source directories to import new files from. In addition, there are some relevant static paths:
| Path | Function |
|---|---|
/root/.config/calibre | Location of calibre's settings folder |
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
发给 Cursor、ChatGPT、豆包等 AI 的说明文档
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务