I see lots of people struggling with this, sort of feel like maybe there is a bug in the redis container image, and others seem to be chasing a similar problem.
I\'m usi
This is simpler way to set up a Redis container.
docker run -d --name some-redis -p 6379:6379 redis
If you don't have the image, this command will pull it. And then, if you need to access from redis-cli to console, can use:
docker exec -it some-redis bash
For enter to container console, and kind in the console:
root@72c388dc2cb8:/data# redis-cli
Output:
127.0.0.1:6379>
This was enough for my use case (easy and fast local development).