Connecting to Redis running in Docker Container from Host machine : <p>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.</p>

<p>I'm using the standard redis image on DockerHub. (<a href="https://github.com/dockerfile/redis" rel="noreferrer">https://github.com/dockerfile/redis</a>)</p>

<p>running it like this:</p>

<pre><code>docker run -it -p 6379:6379 redis bash
</code></pre>

<p>Once I'm in I can start the server, and do a redis ping from the container image.</p>

<p>Unfortunately, I cannot connect to the redis container from my host.</p>

<p>I have tried setting, such as below. </p>

<pre><code>bind 127.0.0.1
</code></pre>

<p>and removed the bind from the configuration</p>

<p>and tried turn off protected mode</p>

<pre><code>protected-mode no
</code></pre>

<p>I know it is reading the configuration file, since I changed ports just to test, and I was able to do that.</p>

<p>I'm running Windows 10, so maybe it is a windows networking issue. I never have a problem with docker normally. I'm puzzled  </p>
