title: Docker Gremlin client cannot connect to gremlin server?
body: <p>I'm running locally a gremlin-client container and a gremlin-server container in 2 separate containers. I'm starting the following like so:</p>
  <pre><code>docker network create -o com.docker.network.bridge.enable_icc=true hacker
  docker run --network hacker -p 8182:8182 tinkerpop/gremlin-server:3.4
  docker run --network hacker -it tinkerpop/gremlin-console
  </code></pre>
  <p>When I try and connect to the remote server from the client like so:</p>
  <pre><code>:remote connect tinkerpop.server conf/remote.yaml
  </code></pre>
  <p>I get the following error:</p>
  <pre><code>Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8182
  </code></pre>
  <p>Why is this? I tried to share the network, but still doesn't work. Any ideas? The port is forwarded and matching what is in the remote.yaml file.</p>
  <h1>Edit</h1>
  <p>I got it working by modifying the host in the conf file on the client to read as <code>host.docker.internal</code></p>