-
Notifications
You must be signed in to change notification settings - Fork 594
Open
Description
Hello,
Step 1: I have the following compose file on Windows 11 latest WSL2 latest Docker desktop latest versions:
services:
# 1. The Redis 8 Server https://hub.docker.com/_/redis
redis:
image: redis:8
container_name: redis-server
restart: unless-stopped
ports:
- "6379:6379"
environment:
- REDIS_ARGS=--appendonly yes
volumes:
- redis8-data:/data
networks:
- redis-net
volumes:
redis8-data:
networks:
redis-net:
Step 2: I run the compose
docker.exe compose -f 'docker\redis\docker-compose.yaml' up -d --build
Step 3: I inspect the container logs
Starting Redis Server
1:C 11 Nov 2025 06:47:14.834 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 11 Nov 2025 06:47:14.834 * Redis version=8.2.3, bits=64, commit=00000000, modified=1, pid=1, just started
1:C 11 Nov 2025 06:47:14.834 * Configuration loaded
Step 4: I docker inspect to make sure the Env has my params
"Env": [
"REDIS_ARGS=--appendonly yes",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"REDIS_DOWNLOAD_URL=https://github.com/redis/redis/archive/refs/tags/8.2.3.tar.gz",
"REDIS_DOWNLOAD_SHA=42d4d3f037db92eea4437ba03f87627cd636ed15a1f2dde7af9650aa94b035d8"
],
Step 5: I use the redis-cli and it says REDIS_ARGS=--appendonly yes (AOF) is not enabled:
Pinging Redis server on redis:6379
Connected.
Ready to execute commands.
> CONFIG GET appendonly
1) "appendonly"
2) "no"
Step 6: I also checked the docker volume and it only has dump.rdb. Which seems to indicate the REDIS_ARGS is being ignored.
Please help. Thank you!
Metadata
Metadata
Assignees
Labels
No labels