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 using the standard redis image on DockerHub. (https://github.com/dockerfile/redis)
running it like this:
docker run -it -p 6379:6379 redis bash
Once I'm in I can start the server, and do a redis ping from the container image.
Unfortunately, I cannot connect to the redis container from my host.
I have tried setting, such as below.
bind 127.0.0.1
and removed the bind from the configuration
and tried turn off protected mode
protected-mode no
I know it is reading the configuration file, since I changed ports just to test, and I was able to do that.
I'm running Windows 10, so maybe it is a windows networking issue. I never have a problem with docker normally. I'm puzzled