docker run -d --name dev-redis -p 6379:6379 redis:7-alpine
Run a Redis 7 container for local development
Launches a slim Redis instance in a detached container mapped to port 6379. The alpine variant keeps the image small for dev machines. Use redis-cli -p 6379 PING to verify it responds, then docker stop dev-redis when finished.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.