title: Using Redis-CLI on Redis container
body: <p>Hello i am trying to issue commands to a <code>Redis</code> docker container.
  The container is up and running.I have used the following command:
  <code>docker run -d -p 8300:85 -t redis</code> <br><br>
  <a href="https://i.stack.imgur.com/uhqwt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uhqwt.png" alt="enter image description here"></a></p>
  
  <p>However when i try to use from my terminal:
  <code>redis-cli -p 8300</code> nothing happens.<br>It just looks that it is waiting for something.<br><br>
  <a href="https://i.stack.imgur.com/dzarO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dzarO.png" alt="enter image description here"></a>
  <br>
  <br>
  How can i communicate to my redis container; what am i doing wrong?</p>
  
  <p><strong>P.S</strong> After i have set the redis port to the defualt <code>6379</code> i get an id as response when using <code>docker run</code> but it still stops right there(first image):</p>
  
  <p><a href="https://i.stack.imgur.com/F3aO5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F3aO5.png" alt="enter image description here"></a></p>
  
  <p>From another terminal (second image) you can see that while the first terminal is blocked ,the instance is created but not started.</p>
  
  <p><strong>P.S 2</strong> After waiting for like 10 minutes i finally get an error message when running the redis container:</p>
  
  <pre><code>$ docker run -d -p 8300:6379 -t redis
  244d898dcfb0cd1da4828ee99a16bdd12f62499f99e8dc3ee17af9bacefe5b41
  C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: failed to create endpoint upbeat_blackwell on network nat: HNS failed with error : You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
  </code></pre>