Sign inSign up

openeuler/redis

Sponsored OSS

By openeuler

Updated 3 months ago

An open source key-value store.

Image
Databases & storage
0

10K+

openeuler/redis repository overview

Quick reference

Redis | 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⁠.

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

TagsCurrentlyArchitectures
8.6.4-oe2403sp4redis 8.6.4 on openEuler 24.03-LTS-SP4amd64, arm64
8.6.4-oe2403sp3redis 8.6.4 on openEuler 24.03-LTS-SP3amd64, arm64
8.2.1-oe2403sp1redis 8.2.1 on openEuler 24.03-LTS-SP1amd64, arm64
8.2.0-oe2403sp1redis 8.2.0 on openEuler 24.03-LTS-SP1amd64, arm64
8.0.2-oe2403sp1redis 8.0.2 on openEuler 24.03-LTS-SP1amd64, arm64
6.2.7-oe2203ltsRedis 6.2.7 on openEuler 22.03-LTSamd64, arm64
7.2.4-oe2203sp3Redis 7.2.4 on openEuler 22.03-LTS-SP3amd64, arm64
7.2.5-oe2203sp3Redis 7.2.5 on openEuler 22.03-LTS-SP3amd64, arm64
7.4.1-oe2003sp4Redis 7.4.1 on openEuler 20.03-LTS-SP4amd64, arm64
7.4.1-oe2203sp1Redis 7.4.1 on openEuler 22.03-LTS-SP1amd64, arm64
7.4.1-oe2203sp3Redis 7.4.1 on openEuler 22.03-LTS-SP3amd64, arm64
7.4.1-oe2203sp4Redis 7.4.1 on openEuler 22.03-LTS-SP4amd64, arm64
7.4.1-oe2403ltsRedis 7.4.1 on openEuler 24.03-LTSamd64, arm64

Usage

In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.

  • Pull the openeuler/redis image from docker

    docker pull openeuler/redis:{Tag}
    
  • Start a redis instance

    docker 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.

    docker 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

    docker 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

    config set protected-mode no
    
  • Container startup options

    OptionDescription
    -p 6379:6379Expose Redis server on localhost:6379.
    -e ALLOW_EMPTY_PASSWORD=yesSet to yes to allow connections to redis-server without a password. This setting is not recommended in production environments.
    -e REDIS_PASSWORDSet the desired password to be used.
    -e REDIS_RANDOM_PASSWORD=1Set 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=yesSet to no to disallow remote connections to redis-server (i.e., make redis-server listen to 127.0.0.1 only).
    -e REDIS_EXTRA_FLAGSSpecify extra flags to be passed to redis-server when initializing it.
    -v /path/to/redis.conf:/etc/redis/redis.confLocal 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

    docker logs -f my-redis
    
  • To get an interactive shell

    docker exec -it my-redis /bin/bash
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:b753e5c39

Size

351.8 MB

Last updated

3 months ago

docker pull openeuler/redis

This week's pulls

Pulls:

31

Last week