Hardened Debian 13 build of Redis 8 from official source, drop-in for redis:8.
3.1K
A source-built, multi-arch, rootless Debian 13 (trixie-slim) container image of Redis 8 with TLS (BUILD_TLS=yes), zstd replication compression (BUILD_COMPRESSION=yes), and jemalloc, maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/redisghcr.io/dgcosenza/redis (identical signed multi-arch digest)dgcosenza/redis-dockerredis/redis (AGPL-3.0-only elected from Redis 8 tri-license)dgcosenza/redis compiles official SHA-256-verified Redis 8 source releases on Debian 13 (trixie-slim) for both linux/amd64 and linux/arm64:
redis:8: Preserves docker-entrypoint.sh, /data volume, redis (999:999), port 6379, and REDISCLI_AUTH authentication — while running non-root by default under tini.--read-only --cap-drop ALL --security-opt no-new-privileges:true.>= 95%, <= 5% wasted), Syft SPDX + CycloneDX SBOMs, Trivy + Grype (SBOM) zero-fixable all-severity gates, Cosign keyless OIDC signatures & SBOM attestations, SLSA Build L3 provenance, dual-registry publishing, and signed GitHub Releases.| Component | Resolved Version |
|---|---|
| Redis | 8.12.0 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Compressed size (per arch) | amd64: 35.5 MB, arm64: 35.9 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/redis@sha256:b629816d880fdc74ffd2d340de26b7632e939ebacae94639daa2729300219fbd |
| GHCR mirror | ghcr.io/dgcosenza/redis@sha256:b629816d880fdc74ffd2d340de26b7632e939ebacae94639daa2729300219fbd |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (13 upstream-unfixed) |
Currently tracked upstream-unfixed findings (no fix released): CVE-2025-69720, CVE-2026-107494, CVE-2026-119373, CVE-2026-119374, CVE-2026-119379, CVE-2026-124709, CVE-2026-16742, CVE-2026-54369, CVE-2026-76642, CVE-2026-78408 (+3 more in CI artifacts).
Identical multi-arch OCI digests are published to Docker Hub (dgcosenza/redis) and GHCR (ghcr.io/dgcosenza/redis), accompanied by an automated signed GitHub Release:
| Tag | Policy | Description |
|---|---|---|
<version>-<YYYYMMDD> (e.g. 8.12.0-20261125) | Immutable | Date-stamped daily rebuild pinning the Redis release and UTC build date. |
sha-<short> | Immutable | Packaging repository Git commit tag. |
<version> (e.g. 8.12.0) | Moving | Latest verified Debian 13 security rebuild of that Redis release. |
8 | Moving | Latest verified Redis 8.x stable build. |
latest | Moving | Latest verified build tracking the newest official Redis 8 release. |
Production pinning: Pin by immutable digest:
image: dgcosenza/redis:8.12.0@sha256:<digest>
# or via GitHub Container Registry (identical digest):
image: ghcr.io/dgcosenza/redis:8.12.0@sha256:<digest>
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Compiled with jemalloc lg-page=12, smoke-tested (--read-only --cap-drop ALL), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native x86_64 CI runners. |
linux/arm64 | Published & natively tested | Compiled with jemalloc lg-page=16, smoke-tested (--read-only --cap-drop ALL), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native ARM64 CI runners. |
docker run (hardened, rootless, read-only)docker run -d --name redis \
--restart unless-stopped \
--read-only \
--cap-drop ALL \
--security-opt no-new-privileges:true \
--tmpfs /tmp:noexec,nosuid,size=16m \
-v redis_data:/data \
-e REDISCLI_AUTH='change-me' \
dgcosenza/redis:latest \
sh -c 'exec redis-server --requirepass "${REDISCLI_AUTH}"'
Verify connectivity:
docker exec redis sh -c 'redis-cli --no-auth-warning ping'
See docker-compose.example.yml for a hardened compose definition running rootless with read_only: true, cap_drop: [ALL], no-new-privileges:true, an internal network, and an authenticated healthcheck.
| Resource | Details | Purpose |
|---|---|---|
6379/tcp | Internal network | Redis client protocol (plain or TLS when configured) |
/data | Owner redis:redis (999:999) | Working directory for RDB snapshots (dump.rdb) and AOF logs (appendonlydir/) |
| Variable | Default | Description |
|---|---|---|
REDISCLI_AUTH | (unset) | Password automatically used by redis-cli (and built-in healthcheck) and optionally passed to --requirepass |
TZ | UTC | Timezone for log timestamps |
SKIP_DROP_PRIVS | (unset) | When explicitly started as --user 0, skip privilege drop to redis |
SKIP_FIX_PERMS | (unset) | When explicitly started as --user 0, skip repairing ownership on /data |
The image defaults to USER redis (999:999). If an existing host bind mount at /data is owned by root, either chown 999:999 on the host before starting, or start once with --user 0 so docker-entrypoint.sh fixes ownership and drops privileges via setpriv --no-new-privs.
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD ["sh", "-c", "redis-cli --no-auth-warning ping | grep -qx PONG"]
Requiring an exact PONG line guarantees fail-closed detection on NOAUTH, WRONGPASS, or connection errors.
redis:8/data (docker exec <container> redis-cli --no-auth-warning BGSAVE).redis:8.x with dgcosenza/redis:<version>@sha256:<digest> (or ghcr.io/dgcosenza/redis:<version>@sha256:<digest>).docker compose up -d redis) and confirm healthy status plus dependent service reconnection.Note on optional Redis 8 modules: This image builds core Redis 8 (redis-server, redis-cli, redis-sentinel, redis-benchmark, redis-check-rdb, redis-check-aof) with TLS and zstd compression, omitting optional Rust/C++ search/JSON/time-series/bloom modules to keep the attack surface minimal.
Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/redis-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/redis:latest
# Or against Docker Hub (identical digest):
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/redis-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
dgcosenza/redis:latest
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/dgcosenza/redis-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/redis@sha256:<arch-digest>
gh attestation verify oci://ghcr.io/dgcosenza/redis:latest --owner dgcosenza
redis/redis-hashes before compiling.USER redis (999:999), verified with --read-only and --cap-drop ALL, uses util-linux setpriv instead of Go-based gosu.>= 95%, <= 5% wasted), and must pass Trivy (table, JSON, SARIF to Code Scanning, blocking --ignore-unfixed) and Grype scanning the SPDX SBOM (--only-fixed --fail-on negligible) with 0 fixable vulnerabilities of any severity.renovate.json) pins base image digests and GitHub Action commit SHAs; Dependabot security alerts and OpenSSF Scorecard monitoring are enabled.SECURITY.md for vulnerability reporting.git clone https://github.com/dgcosenza/redis-docker.git
cd redis-docker
docker buildx build \
--platform linux/amd64 \
--load \
--build-arg IMAGE_CREATED="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--build-arg IMAGE_REVISION="$(git rev-parse HEAD)" \
-t dgcosenza/redis:local \
.
./tests/smoke.sh dgcosenza/redis:local
| Build Arg | Default | Purpose |
|---|---|---|
DEBIAN_BASE | debian:trixie-slim@sha256:... | Digest-pinned Debian 13 base image (refreshed daily by CI) |
REDIS_VERSION | 8.12.0 | Official Redis 8.x release version |
REDIS_SHA256 | pinned | Official SHA-256 digest from redis/redis-hashes |
REDIS_UID / REDIS_GID | 999 / 999 | Unprivileged redis user/group IDs |
.github/workflows/daily.yml runs automatically every day at 05:30 UTC, on pushes to main, on pull requests (verification only), and via workflow_dispatch:
redis/redis-hashes, resolves the latest debian:trixie-slim digest, diffs against versions.json, and emits upstream-changes.md.linux/amd64 and linux/arm64 runners with --no-cache on schedule and full Debian 13 apt-get upgrade.tests/smoke.sh natively on both architectures (--read-only --cap-drop ALL, plain + REDISCLI_AUTH, SET/GET/SAVE, negative tests), enforces the strict Dive efficiency gate (>= 95%, <= 5% wasted), generates Syft SPDX + CycloneDX SBOMs, and gates publication on 0 fixable findings of any severity in both Trivy and Grype (SBOM scan).ghcr.io/dgcosenza/redis) and mirrors the identical digest to Docker Hub (dgcosenza/redis) with tags latest, 8, <version>, <version>-<YYYYMMDD>, and sha-<short>; keyless-signs digests and attaches SPDX/CycloneDX SBOM attestations via Cosign OIDC; emits SLSA Build L3 provenance; and publishes a signed GitHub Release.versions.json, the README Current Versions block, and a dated CHANGELOG.md entry via github-actions[bot] ([skip ci]), then syncs the Docker Hub overview and short description.ci-failure on any main or scheduled failure, and closes it automatically on the next green run.trixie-slim) multi-stage source build: Separates the build toolchain completely from runtime and applies daily Debian security upgrades.os-base stage and assembling the final image with cleanly separated OS and compiled-binary layers eliminates overwritten base-layer files so Dive remains at ~100% efficiency and ~0% wasted space across daily security rebuilds.DL3008 ignore: Daily --no-cache security rebuilds intentionally pull the newest Debian 13 security updates via apt-get rather than pinning stale package versions.This repository follows a clear packaging-vs-upstream license split:
packaging: MIT): Licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs.upstream: AGPL-3.0-only): Redis 8 is tri-licensed under AGPLv3, RSALv2, and SSPLv1; this image elects the GNU Affero General Public License v3 (AGPL-3.0-only).Full notices are preserved inside the image (/usr/share/doc/redis-notices/) and in THIRD-PARTY-NOTICES.md.
Content type
Image
Digest
sha256:b629816d8…
Size
33.8 MB
Last updated
about 12 hours ago
docker pull dgcosenza/redis