Redis

Supports a wide range of data structures, such as strings, lists, sets, and hashes.


What is Redis?

The redis image provides Redis, an in-memory data store often used as a cache, message broker, or ephemeral database. Redis supports a wide range of data structures, such as strings, lists, sets, and hashes. It’s known for its speed, simplicity, and low latency.

This image runs the Redis server in a containerized environment and is commonly used in microservice architectures, job queues, session stores, and as a backing cache for web applications. It's suitable for both development and production environments, depending on configuration and persistence settings.

The redis image is frequently deployed in Kubernetes, Docker Compose, and CI pipelines where lightweight, high-performance state management is required.

How to use this image

The redis image can be run as a standalone server or configured for clustering and persistence.

Run Redis with default settings:

<code>docker run -d -p 6379:6379 redis</code>

Run with persistent data:

<code>docker run -d -p 6379:6379 \  -v $(pwd)/data:/data \  redis redis-server --save 60 1 --loglevel warning</code>

Run with a custom config file:

<code>docker run -d -p 6379:6379 \  -v $(pwd)/redis.conf:/usr/local/etc/redis/redis.conf \  redis redis-server /usr/local/etc/redis/redis.conf</code>

Logging and ports:

Redis logs to stdout, and the server listens on port 6379 by default.

Interested in a CVE-free redis?

Pull echo’s redis image for a CVE-free base. Automatically patched, hardened, and FIPS-validated for you. Chat with a product expert.

Interested in base images that start and stay clean?

This is a not a valid email
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.