title: Docker Container Access in Postman
body: <p>I have below container config in <code>docker-compose.yml</code> file</p>
  <pre><code>  networks:
      my-network:
  
    client-service:
      container_name: client-service
      image: client-service
      environment:
        - SPRING_PROFILES_ACTIVE=dev
      ports:
        - 8087:8087
      restart: unless-stopped
      depends_on:
        - cassandra
      links:
        - cassandra
      networks:
        - my-network
  </code></pre>
  <p>I use Docker 19 version, and Mac OS. after reading materials, add entry in <code>/etc/hosts</code> file as below,</p>
  <pre><code>127.0.0.1 host.docker.local
  
  </code></pre>
  <p>When i tried to access <code>http://host.docker.internal:8087</code> in postman getting <code>socket hang up</code> error in postman. I tried using <code>localhost:8087</code> but no luck.</p>
  <p>the <code>my-network</code> is bridge network. any way to access my container?</p>