HUB
Sign inSign up

openeulertest/redis

By openeulertest

•Updated about 14 hours ago

Image
0

4.7K

openeulertest/redis repository overview

⁠redis

⁠Quick reference

⁠Build reference

  1. Build images and push:
docker buildx build -t "openeuler/redis:$VERSION" --platform linux/amd64,linux/arm64 . --push

We are using buildx in here to generate multi-arch images, see more in Docker Buildx⁠

⁠How to use this image

⁠start a redis instance

docker run --name my-redis -d openeuler/redis:{TAG}

⁠Start with persistent storage

docker run --name my-redis -d openeuler/redis:{TAG} redis-server --save 60 1 --loglevel warning

As shows above, this will save a snapshot of the DB every 60 seconds if at least 1 write operation was performed.

⁠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
  • 6.2.7-oe2203lts: redis v6.2.7, openEuler 22.03 LTS
  • 7.2.4-oe2203sp3: redis v7.2.4, openEuler 22.03 LTS SP3

⁠Operating System

Linux/Unix, ARM64 or x86-64 architecture.

Tag summary

Content type

Image

Digest

sha256:4fbfb9799…

Size

426 MB

Last updated

about 14 hours ago

docker pull openeulertest/redis:8.12.0-oe2403sp4-x86_64