如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Maintained by:
https://github.com/valkey-io/valkey-bundle
Where to get help:
Please open an issue stating your question at https://github.com/valkey-io/valkey-bundle/issues.
Dockerfile linksValkey Bundle is a containerized version of Valkey, enhanced with popular modules like https://github.com/valkey-io/valkey-json, https://github.com/valkey-io/valkey-bloom, https://github.com/valkey-io/valkey-search, and https://github.com/valkey-io/valkey-ldap, allowing you to utilize advanced data structures and additional search capabilities alongside standard Valkey functionality.
This image is built on top of the official Valkey base image and simplifies deployment of Valkey with these powerful modules included.
| valkey-bundle | valkey | valkey-json | valkey-bloom | valkey-search | valkey-ldap |
|---|---|---|---|---|---|
| unstable | unstable | https://github.com/valkey-io/valkey-json/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-bloom/releases/tag/1.0.1 | https://github.com/valkey-io/valkey-search/releases/tag/1.2.0 | https://github.com/valkey-io/valkey-ldap/releases/tag/1.1.0 |
| 9.1.0 | https://github.com/valkey-io/valkey/releases/tag/9.1.0 | https://github.com/valkey-io/valkey-json/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-bloom/releases/tag/1.0.1 | https://github.com/valkey-io/valkey-search/releases/tag/1.2.0 | https://github.com/valkey-io/valkey-ldap/releases/tag/1.1.0 |
| 9.0.3 | https://github.com/valkey-io/valkey/releases/tag/9.0.4 | https://github.com/valkey-io/valkey-json/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-bloom/releases/tag/1.0.1 | https://github.com/valkey-io/valkey-search/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-ldap/releases/tag/1.0.1 |
| 8.1.6 | https://github.com/valkey-io/valkey/releases/tag/8.1.7 | https://github.com/valkey-io/valkey-json/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-bloom/releases/tag/1.0.1 | https://github.com/valkey-io/valkey-search/releases/tag/1.0.2 | https://github.com/valkey-io/valkey-ldap/releases/tag/1.0.1 |
For ease of accessing Valkey Bundle from other containers via Docker networking, the "Protected mode" is turned off by default. This means if you expose the port externally (e.g., via -p), it will be open without authentication. It is strongly recommended to set a password or authentication method if exposing your instance to the internet.
See the following resources for securing Valkey:
console$ docker run --name my-valkey-bundle -d valkey/valkey-bundle
console$ docker run --name my-valkey-bundle -d valkey/valkey-bundle valkey-server --save 60 1 --loglevel warning
This example saves a snapshot every 60 seconds if at least one write occurred. Data is stored at VOLUME /data.
valkey-cliconsole$ docker run -it --network some-network --rm valkey/valkey-bundle valkey-cli -h my-valkey-bundle
You can configure startup arguments with the environment variable VALKEY_EXTRA_FLAGS:
console$ docker run --env VALKEY_EXTRA_FLAGS='--save 60 1 --loglevel warning' valkey/valkey-bundle
Create a custom configuration file valkey.conf and use it in your container:
Dockerfile approach:
dockerfileFROM valkey/valkey-bundle:latest COPY valkey.conf /usr/local/etc/valkey/valkey.conf CMD [ "valkey-server", "/usr/local/etc/valkey/valkey.conf" ]
Docker run approach:
console$ docker run -v /myvalkey/conf:/usr/local/etc/valkey --name my-valkey-bundle valkey/valkey-bundle valkey-server /usr/local/etc/valkey/valkey.conf
valkey/valkey-bundle:<version>This is the primary image, which includes Valkey along with common modules like valkey-json, valkey-bloom, valkey-search, and valkey-ldap preloaded. It is suitable for development, testing, and production environments where these modules are needed out of the box.
Some of the tags may include names like bookworm, which refer to Debian release codenames. These indicate the base image used and help ensure compatibility if your container needs additional packages. Specifying these explicitly is recommended to avoid unexpected changes when base image versions update.
If you want a minimal yet functional Valkey container with built-in modules, this image is a great place to start.
valkey/valkey-bundle:<version>-alpineThis image is based on the popular Alpine Linux project, available in https://hub.docker.com/_/alpine. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.
To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the https://hub.docker.com/_/alpine/ for examples of how to install packages if you are unfamiliar).
View the https://github.com/valkey-io/valkey-bundle/blob/mainline/LICENSE for software included in this image.
Users of this image are responsible for ensuring compliance with all licenses of software contained within.
以下是 valkey/valkey-bundle 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务