openeuler/redisThe official Redis docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current Redis docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
Redis is the world’s fastest in-memory database. It provides cloud and on-prem solutions for caching, vector search, and NoSQL databases that seamlessly fit into any tech stack—making it simple for digital customers to build, scale, and deploy the fast apps our world runs on. Learn more on the Redis website.
Please also view the Redis License Overview and the Redis Trademark Policy.
Redis data structures
Redis data persistences
The tag of each redis docker image is consist of the version of redis and the version of basic image. The details are as follows
| Tags | Currently | Architectures |
|---|---|---|
| 8.2.1-oe2403sp1 | redis 8.2.1 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
| 8.2.0-oe2403sp1 | redis 8.2.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
| 8.0.2-oe2403sp1 | redis 8.0.2 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
| 6.2.7-oe2203lts | Redis 6.2.7 on openEuler 22.03-LTS | amd64, arm64 |
| 7.2.4-oe2203sp3 | Redis 7.2.4 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 7.2.5-oe2203sp3 | Redis 7.2.5 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 7.4.1-oe2003sp4 | Redis 7.4.1 on openEuler 20.03-LTS-SP4 | amd64, arm64 |
| 7.4.1-oe2203sp1 | Redis 7.4.1 on openEuler 22.03-LTS-SP1 | amd64, arm64 |
| 7.4.1-oe2203sp3 | Redis 7.4.1 on openEuler 22.03-LTS-SP3 | amd64, arm64 |
| 7.4.1-oe2203sp4 | Redis 7.4.1 on openEuler 22.03-LTS-SP4 | amd64, arm64 |
| 7.4.1-oe2403lts | Redis 7.4.1 on openEuler 24.03-LTS | amd64, arm64 |
In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.
Pull the openeuler/redis image from docker
bashdocker pull openeuler/redis:{Tag}
Start a redis instance
bashdocker run -d --name my-redis -p 6379:6379 openeuler/redis:{Tag}
Start with persistent storage
As follows, this will save a snapshot of the DB every 60 seconds if at least 1 write operation was performed.
shelldocker run --name my-redis -d openeuler/redis:{Tag} redis-server --save 60 1 --loglevel warning
Connect to a redis instance
Connect to a local redis instance using loopback address
shelldocker run --name my-redis -d -p 6379:6379 openeuler/redis:{Tag} redis-cli -h 127.0.0.1 -p 6379
If you want connect the redis instance using hostip, you should connect to the instance using loopback, and then configure as belows
bashconfig set protected-mode no
Container startup options
| Option | Description |
|---|---|
-p 6379:6379 | Expose Redis server on localhost:6379. |
-e ALLOW_EMPTY_PASSWORD=yes | Set to yes to allow connections to redis-server without a password. This setting is not recommended in production environments. |
-e REDIS_PASSWORD | Set the desired password to be used. |
-e REDIS_RANDOM_PASSWORD=1 | Set this variable to 1 if you would like the entrypoint script to generate a random password for you. You will be able to see the generated password in the logs (docker logs). |
-e REDIS_ALLOW_REMOTE_CONNECTIONS=yes | Set to no to disallow remote connections to redis-server (i.e., make redis-server listen to 127.0.0.1 only). |
-e REDIS_EXTRA_FLAGS | Specify extra flags to be passed to redis-server when initializing it. |
-v /path/to/redis.conf:/etc/redis/redis.conf | Local configuration file redis.conf. To enable TLS mode, comment the port 6379 line and uncomment the # port 0 and # tls-port 6379 lines. |
View container running logs
bashdocker logs -f my-redis
To get an interactive shell
bashdocker exec -it my-redis /bin/bash
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务