Answer
You use the docker run command with the official Redis image, optionally mapping the container's port to a port on your host machine, letting you quickly start a working Redis instance for local development or testing without needing to install Redis directly on your machine.
docker run --name my-redis -p 6379:6379 -d redis:latestReal-world example A developer quickly spins up a local Redis instance for testing using Docker, avoiding the need to install and configure Redis directly on their development machine.