title: Problem in Ping or SSH connect to docker container
body: <p>I am new to docker. I installed docker on Windows 10. Also, I have installed SSH on my win.</p>
  <p>I have a pylucene docker container. When I check the status of my docker container, it is Up.</p>
  <pre><code>PS C:\Windows\system32&gt; docker ps -a
  CONTAINER ID   IMAGE            COMMAND       CREATED       STATUS        PORTS     NAMES
  d70d6f0ed7ab   coady/pylucene   &quot;/bin/bash&quot;   4 weeks ago   Up 3 hours              amazing_dubinsky
  </code></pre>
  <p>Also, I have no problem with executing it and working with its shell.</p>
  <pre><code>PS C:\Windows\system32&gt; docker exec -it d70d6f0ed7ab /bin/bash
  root@d70d6f0ed7ab:/usr/src# python
  Python 3.9.2 (default, Mar 31 2021, 12:13:11)
  [GCC 8.3.0] on linux
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import lucene
  &gt;&gt;&gt; print(lucene.VERSION)
  8.8.1
  &gt;&gt;&gt;                                                                                                                           
  </code></pre>
  <p>but when I found its IP and try to ping this docker container from my win, the result is just timeout!</p>
  <pre><code>PS C:\Windows\system32&gt; docker inspect -f &quot;{{ .NetworkSettings.IPAddress }}&quot; d70d6f0ed7ab                               
  172.17.0.3
  PS C:\Windows\system32&gt; ping 172.17.0.3                                                                                 
  Pinging 172.17.0.3 with 32 bytes of data:
  Request timed out.
  Request timed out.
  Request timed out.
  Request timed out.
  
  Ping statistics for 172.17.0.3:
      Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
  PS C:\Windows\system32&gt;   
  </code></pre>
  <p>Also SSH connect to this container fails,</p>
  <pre><code>PS C:\Windows\system32&gt; ssh root@172.17.0.3                                                                             
  ssh: connect to host 172.17.0.3 port 22: Connection timed out
  PS C:\Windows\system32&gt;   
  </code></pre>