专属
文档
插件
助手
邀请
顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单

文档

工具

功能
提交工单页面收录

帮助
轩辕镜像免费版

其他
关于我们网站地图
热门搜索:
valkey

bitnami/valkey

Bitnami Secure Images(VMware Tanzu)

Bitnami提供的valkey安全镜像,用于安全部署和运行高性能键值存储服务,具备可靠的安全性与便捷的部署维护特性。

5 次收藏下载次数: 0状态:社区镜像维护者:Bitnami Secure Images(VMware Tanzu)仓库类型:镜像最近更新:13 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
标签列表
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。
点击查看

Bitnami Secure Image for Valkey

Valkey is a high-performance data structure server that primarily serves key/value workloads. It supports a wide range of native structures and an extensible plugin system for adding new data structures and access patterns.

Overview of Valkey Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

console
docker run --name valkey -e ALLOW_EMPTY_PASSWORD=yes REGISTRY_NAME/bitnami/valkey:latest

Warning: These quick setups are only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the Configuration section for a more secure deployment.

How to deploy Valkey in Kubernetes?

Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the https://github.com/bitnami/charts/tree/master/bitnami/valkey.

Why use a non-root container?

Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.

Supported tags and respective Dockerfile links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

Get this image

The recommended way to get the Bitnami Valkey Docker Image is to pull the prebuilt image from the https://hub.docker.com/r/bitnami/valkey.

console
docker pull REGISTRY_NAME/bitnami/valkey:latest

To use a specific version, you can pull a versioned tag. You can view the https://hub.docker.com/r/bitnami/valkey/tags/ in the Docker Hub Registry.

console
docker pull REGISTRY_NAME/bitnami/valkey:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

console
git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t REGISTRY_NAME/bitnami/APP:latest .

Using docker-compose.yaml

Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated https://github.com/bitnami/charts/tree/main/bitnami/valkey.

Persisting your database

Valkey provides a different range of persistence options. This contanier uses AOF persistence by default but it is easy to overwrite that configuration in a docker-compose.yaml file with this entry command: /opt/bitnami/scripts/valkey/run.sh --appendonly no. Alternatively, you may use the VALKEY_AOF_ENABLED env variable as explained in https://github.com/bitnami/containers/blob/main/bitnami/valkey#disabling-aof-persistence.

If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a directory at the /bitnami path. If the mounted directory is empty, it will be initialized on the first run.

NOTE As this is a non-root container, the mounted files and directories must have the proper permissions for the UID 1001.

Connecting to other containers

Using Docker container networking, a Valkey server running inside a container can easily be accessed by your application containers.

Containers attached to the same network can communicate with each other using the container name as the hostname.

Configuration

The following section describes the supported environment variables

Environment variables

The following tables list the main variables you can set.

Customizable environment variables

NameDescriptionDefault Value
VALKEY_DATA_DIRValkey data directory${VALKEY_VOLUME_DIR}/data
VALKEY_OVERRIDES_FILEValkey config overrides file${VALKEY_MOUNTED_CONF_DIR}/overrides.conf
VALKEY_DISABLE_COMMANDSCommands to disable in Valkeynil
VALKEY_DATABASEDefault Valkey databasevalkey
VALKEY_AOF_ENABLEDEnable AOFyes
VALKEY_RDB_POLICYEnable RDB policy persistencenil
VALKEY_RDB_POLICY_DISABLEDAllows to enable RDB policy persistenceno
VALKEY_PRIMARY_HOSTValkey primary host (used by replicas)nil
VALKEY_PRIMARY_PORT_NUMBERValkey primary host port (used by replicas)6379
VALKEY_PORT_NUMBERValkey port number$VALKEY_DEFAULT_PORT_NUMBER
VALKEY_ALLOW_REMOTE_CONNECTIONSAllow remote connection to the serviceyes
VALKEY_REPLICATION_MODEValkey replication mode (values: primary, replica)nil
VALKEY_REPLICA_IPThe replication announce ipnil
VALKEY_REPLICA_PORTThe replication announce portnil
VALKEY_EXTRA_FLAGSAdditional flags pass to 'valkey-server' commandsnil
ALLOW_EMPTY_PASSWORDAllow password-less accessno
VALKEY_PASSWORDPassword for Valkeynil
VALKEY_PRIMARY_PASSWORDValkey primary node passwordnil
VALKEY_ACLFILEValkey ACL filenil
VALKEY_IO_THREADS_DO_READSEnable multithreading when reading socketnil
VALKEY_IO_THREADSNumber of threadsnil
VALKEY_TLS_ENABLEDEnable TLSno
VALKEY_TLS_PORT_NUMBERValkey TLS port (requires VALKEY_ENABLE_TLS=yes)6379
VALKEY_TLS_CERT_FILEValkey TLS certificate filenil
VALKEY_TLS_CA_DIRDirectory containing TLS CA certificatesnil
VALKEY_TLS_KEY_FILEValkey TLS key filenil
VALKEY_TLS_KEY_FILE_PASSValkey TLS key file passphrasenil
VALKEY_TLS_CA_FILEValkey TLS CA filenil
VALKEY_TLS_DH_PARAMS_FILEValkey TLS DH parameter filenil
VALKEY_TLS_AUTH_CLIENTSEnable Valkey TLS client authenticationyes
VALKEY_SENTINEL_PRIMARY_NAMEValkey Sentinel primary namenil
VALKEY_SENTINEL_HOSTValkey Sentinel hostnil
VALKEY_SENTINEL_PORT_NUMBERValkey Sentinel host port (used by replicas)26379

Read-only environment variables

NameDescriptionValue
VALKEY_VOLUME_DIRPersistence base directory/bitnami/valkey
VALKEY_BASE_DIRValkey installation directory${BITNAMI_ROOT_DIR}/valkey
VALKEY_CONF_DIRValkey configuration directory${VALKEY_BASE_DIR}/etc
VALKEY_DEFAULT_CONF_DIRValkey default configuration directory${VALKEY_BASE_DIR}/etc.default
VALKEY_MOUNTED_CONF_DIRValkey mounted configuration directory${VALKEY_BASE_DIR}/mounted-etc
VALKEY_CONF_FILEValkey configuration file${VALKEY_CONF_DIR}/valkey.conf
VALKEY_LOG_DIRValkey logs directory${VALKEY_BASE_DIR}/logs
VALKEY_LOG_FILEValkey log file${VALKEY_LOG_DIR}/valkey.log
VALKEY_TMP_DIRValkey temporary directory${VALKEY_BASE_DIR}/tmp
VALKEY_PID_FILEValkey PID file${VALKEY_TMP_DIR}/valkey.pid
VALKEY_BIN_DIRValkey executables directory${VALKEY_BASE_DIR}/bin
VALKEY_DAEMON_USERValkey system uservalkey
VALKEY_DAEMON_GROUPValkey system groupvalkey
VALKEY_DEFAULT_PORT_NUMBERValkey port number (Build time)6379

Disabling Valkey commands

For security reasons, you may want to disable some commands. You can specify them by using the following environment variable on the first run:

  • VALKEY_DISABLE_COMMANDS: Comma-separated list of Valkey commands to disable. Defaults to empty.

Passing extra command-line flags to valkey-server startup

Passing extra command-line flags to the valkey service command is possible by adding them as arguments to run.sh script:

console
docker run --name valkey -e ALLOW_EMPTY_PASSWORD=yes REGISTRY_NAME/bitnami/valkey:latest /opt/bitnami/scripts/valkey/run.sh --maxmemory 100mb

Alternatively, modify the https://github.com/bitnami/containers/blob/main/bitnami/valkey/docker-compose.yml file present in this repository:

yaml
services:
  valkey:
  ...
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    command: /opt/bitnami/scripts/valkey/run.sh --maxmemory 100mb
  ...

Setting the server password on first run

Passing the VALKEY_PASSWORD environment variable when running the image for the first time will set the Valkey server password to the value of VALKEY_PASSWORD (or the content of the file specified in VALKEY_PASSWORD_FILE).

NOTE: The at sign (@) is not supported for VALKEY_PASSWORD.

Warning The Valkey database is always configured with remote access enabled. It's suggested that the VALKEY_PASSWORD env variable is always specified to set a password. In case you want to access the database without a password set the environment variable ALLOW_EMPTY_PASSWORD=yes. This is recommended only for development.

Allowing empty passwords

By default the Valkey image expects all the available passwords to be set. In order to allow empty passwords, it is necessary to set the ALLOW_EMPTY_PASSWORD=yes env variable. This env variable is only recommended for testing or development purposes. We strongly recommend specifying the VALKEY_PASSWORD for any other scenario.

Disabling AOF persistence

Valkey offers different options when it comes to persistence. By default, this image is set up to use the AOF (Append Only File) approach. Should you need to change this behaviour, setting the VALKEY_AOF_ENABLED=no env variable will disable this feature.

Enabling Access Control List

Valkey offers ACL which allows certain connections to be limited in terms of the commands that can be executed and the keys that can be accessed. We strongly recommend enabling ACL in production by specifying the VALKEY_ACLFILE.

console
docker run -name valkey -e VALKEY_ACLFILE=/opt/bitnami/valkey/mounted-etc/users.acl -v /path/to/users.acl:/opt/bitnami/valkey/mounted-etc/users.acl REGISTRY_NAME/bitnami/valkey:latest

Alternatively, modify the https://github.com/bitnami/containers/blob/main/bitnami/valkey/docker-compose.yml file present in this repository:

yaml
services:
  valkey:
  ...
    environment:
      - VALKEY_ACLFILE=/opt/bitnami/valkey/mounted-etc/users.acl
    volumes:
      - /path/to/users.acl:/opt/bitnami/valkey/mounted-etc/users.acl
  ...

Setting up a standalone instance

By default, this image is set up to launch Valkey in standalone mode on port 6379. Should you need to change this behavior, setting the VALKEY_PORT_NUMBER environment variable will modify the port number. This is not to be confused with VALKEY_PRIMARY_PORT_NUMBER or VALKEY_REPLICA_PORT environment variables that are applicable in replication mode.

Setting up replication

A replication cluster can easily be setup with the Bitnami Valkey Docker Image using the following environment variables:

  • VALKEY_REPLICATION_MODE: The replication mode. Possible values primary/replica. No defaults.
  • VALKEY_REPLICA_IP: The replication announce ip. Defaults to $(get_machine_ip) which return the ip of the container.
  • VALKEY_REPLICA_PORT: The replication announce port. Defaults to VALKEY_PRIMARY_PORT_NUMBER.
  • VALKEY_PRIMARY_HOST: Hostname/IP of replication primary (replica node parameter). No defaults.
  • VALKEY_PRIMARY_PORT_NUMBER: Server port of the replication primary (replica node parameter). Defaults to 6379.
  • VALKEY_PRIMARY_PASSWORD: Password to authenticate with the primary (replica node parameter). No defaults. As an alternative, you can mount a file with the password and set the VALKEY_PRIMARY_PASSWORD_FILE variable.

In a replication cluster you can have one primary and zero or more replicas. When replication is enabled the primary node is in read-write mode, while the replicas are in read-only mode. For best performance its advisable to limit the reads to the replicas.

Securing Valkey traffic

Valkey adds the support for SSL/TLS connections. Should you desire to enable this optional feature, you may use the following environment variables to configure the application:

  • VALKEY_TLS_ENABLED: Whether to enable TLS for traffic or not. Defaults to no.
  • VALKEY_TLS_PORT_NUMBER: Port used for TLS secure traffic. Defaults to 6379.
  • VALKEY_TLS_CERT_FILE: File containing the certificate file for the TLS traffic. No defaults.
  • VALKEY_TLS_KEY_FILE: File containing the key for certificate. No defaults.
  • VALKEY_TLS_CA_FILE: File containing the CA of the certificate (takes precedence over VALKEY_TLS_CA_DIR). No defaults.
  • VALKEY_TLS_CA_DIR: Directory containing the CA certificates. No defaults.
  • VALKEY_TLS_DH_PARAMS_FILE: File containing DH params (in order to support DH based ciphers). No defaults.
  • VALKEY_TLS_AUTH_CLIENTS: Whether to require clients to authenticate or not. Defaults to yes.

When enabling TLS, conventional standard traffic is disabled by default. However this new feature is not mutually exclusive, which means it is possible to listen to both TLS and non-TLS connection simultaneously. To enable non-TLS traffic, set VALKEY_TLS_PORT_NUMBER to another port different than 0.

Alternatively, you may also provide with this configuration in your https://github.com/bitnami/containers/blob/main/bitnami/valkey#configuration-file configuration file.

Configuration file

The image looks for configurations in /opt/bitnami/valkey/mounted-etc/valkey.conf. You can overwrite the valkey.conf file using your own custom configuration file.

console
docker run --name valkey \
    -e ALLOW_EMPTY_PASSWORD=yes \
    -v /path/to/your_valkey.conf:/opt/bitnami/valkey/mounted-etc/valkey.conf \
    -v /path/to/valkey-data-persistence:/bitnami/valkey/data \
    REGISTRY_NAME/bitnami/valkey:latest

Alternatively, modify the https://github.com/bitnami/containers/blob/main/bitnami/valkey/docker-compose.yml file present in this repository:

yaml
services:
  valkey:
  ...
    volumes:
      - /path/to/your_valkey.conf:/opt/bitnami/valkey/mounted-etc/valkey.conf
      - /path/to/valkey-persistence:/bitnami/valkey/data
  ...

Overriding configuration

Instead of providing a custom valkey.conf, you may also choose to provide only settings you wish to override. The image will look for /opt/bitnami/valkey/mounted-etc/overrides.conf. This will be ignored if custom valkey.conf is provided.

console
docker run --name valkey \
    -e ALLOW_EMPTY_PASSWORD=yes \
    -v /path/to/overrides.conf:/opt/bitnami/valkey/mounted-etc/overrides.conf \
    REGISTRY_NAME/bitnami/valkey:latest

Alternatively, modify the https://github.com/bitnami/containers/blob/main/bitnami/valkey/docker-compose.yml file present in this repository:

yaml
services:
  valkey:
  ...
    volumes:
      - /path/to/overrides.conf:/opt/bitnami/valkey/mounted-etc/overrides.conf
  ...

Enable Valkey RDB persistence

When the value of VALKEY_RDB_POLICY_DISABLED is no (default value) the Valkey default persistence strategy will be used. If you want to modify the default strategy, you can configure it through the VALKEY_RDB_POLICY parameter.

FIPS configuration in Bitnami Secure Images

The Bitnami Valkey Docker image from the Bitnami Secure Images catalog includes extra features and settings to configure the container with FIPS capabilities. You can configure the next environment variables:

  • OPENSSL_FIPS: whether OpenSSL runs in FIPS mode or not. yes (default), no.

Logging

The Bitnami Valkey Docker image sends the container logs to the stdout. To view the logs:

console
docker logs valkey

or using Docker Compose:

console
docker-compose logs valkey

You can configure the containers logging driver using the --log-driver option if you wish to consume the container logs differently. In the default configuration docker uses the json-file driver.

Notable Changes

Starting October 20, 2024

  • All the references have been updated from master/slave to primary/replica to follow the upstream project strategy. Environment variables previously prefixed as VALKEY_MASTER or VALKEY_SENTINEL_MASTER use VALKEY_PRIMARY and VALKEY_SENTINEL_PRIMARY now.

License

Copyright © 2026 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

<[***]>

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

更多相关 Docker 镜像与资源

以下是 bitnami/valkey 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • valkey/valkey Docker 镜像说明(Valkey,Redis 分支,兼容 Redis 协议)
  • library/redis Docker 镜像说明(官方标准版本,适合通用场景)
  • bitnami/redis Docker 镜像说明(企业级配置,适合生产环境)
  • redislabs/redis Docker 镜像说明(官方实验与扩展版本)
  • arm64v8/redis Docker 镜像说明(Redis 数据库,ARM64 架构版本)

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 valkey 镜像标签

docker pull docker.xuanyuan.run/bitnami/valkey:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull bitnami/valkey:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
Bitnami Secure Images(VMware Tanzu)
...
bitnami/valkey
教程轩辕镜像功能与使用教程
定价查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
官方公众号:源码跳动|官方技术交流群:831623681
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.

更多 valkey 镜像推荐

valkey/valkey logo

valkey/valkey

valkey
Valkey 是一款高性能的数据结构服务器,主要专注于为键值(key/value)类型的工作负载提供服务,它凭借优化的数据处理机制和高效的存储结构,能够快速响应各类键值对操作请求,适用于高吞吐量、低延迟的应用场景,通过稳定可靠的运行机制为用户提供高效的数据服务支持。
130 次收藏1亿+ 次下载
3 天前更新
valkey/valkey-bundle logo

valkey/valkey-bundle

valkey
valkey-bundle镜像用于安装valkey服务器并加载所有valkey模块,提供集成了服务器与完整模块的一站式运行环境。
7 次收藏500万+ 次下载
4 天前更新
bitnamicharts/valkey logo

bitnamicharts/valkey

bitnamicharts
Bitnami提供的Valkey Helm chart,用于在Kubernetes环境中便捷部署高性能键值存储数据库Valkey。
3 次收藏500万+ 次下载
13 天前更新
activestate/valkey logo

activestate/valkey

activestate
ActiveState的可定制、低至无漏洞的Valkey容器镜像,提供安全基础和最新工具链,适用于构建和运行Valkey应用。
4.6千+ 次下载
5 天前更新
cleanstart/valkey logo

cleanstart/valkey

cleanstart
CleanStart Valkey镜像是基于最小化CleanStart OS构建的安全设计、速度优化的强化容器镜像,提供生产就绪、企业级安全强化功能,适用于企业环境的可靠应用部署。
1万+ 次下载
6 天前更新
ubuntu/valkey logo

ubuntu/valkey

Ubuntu 官方镜像
Valkey是一个灵活的分布式键值数据存储,专为缓存和实时工作负载优化。
1 次收藏4.3千+ 次下载
4 个月前更新

查看更多 valkey 相关镜像