
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
 http://img.shields.io/badge/license-MIT-blue.svg?style=flat](LICENSE)
Download ***ary for your environment from https://github.com/syoya/resizer/releases/latest, or go get like:
bashgo get -u github.com/syoya/resizer/...
bashresizer
ENVIRONMENT: development or production. In default productionGOOGLE_AUTH_JSON: The service account JSON of Google Cloud.RESIZER_ACCOUNT: Path to the file of Google service account JSON.RESIZER_BUCKET: Bucket name of Google Cloud Storage to upload the resized image.RESIZER_CONNECTIONS: Max simultaneous connections to be accepted by server. When 0 or less is specified, the number of connections isn't limited.RESIZER_DSN: Data source name of database to store resizing information.RESIZER_HOST: Hosts of the image that is allowed to resize. When this value isn't specified, all hosts are allowed.RESIZER_PORT: Port to be listened.RESIZER_PREFIX: Object prefix of Google Cloud Storage.RESIZER_VERBOSE: Verbose output.httpcurl http://your.host.name/?url=http%3A%2F%2Fexample.com%2Fimage.jpeg&width=800
httpGET http://your.host.name/
key=value parameters with &.
value should be URL-encoded.url
The URL of a resizing image. Required.
The host of the URL should be specified with hosts in running option.
width, height
The size of resized image in pixel. In default 0.
0.0 to both of width and height isn't allowed.width is 0. width is guessed with height and the aspect ratio of the source image .height is 0. height is guessed with width and the aspect ratio of the source image .method
How to resize. contain or cover. Optional. In default contain.
width or height is 0, specified method is ignored and resizer resizes with contain method.contain, resizer resizes image to fall into the specified size and doesn't clip.cover, resizer resizes image to fill all pixels in the specified size and clips the outer of the specified size.format
The format of the resized image. jpeg or png or gif. In default jpeg.
quality
The quality of the resized image as jpeg. 0〜100. In default 100.
format isn't jpeg.Success
2xx.3xx and redirects to the storage URL of that the resized image was saved.Error
Response with the code as 4xx, and the reason will be written in the body.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务