title: Docker IPAddress Empty: Cannot Access Container
body: <p>I built my container as follows:</p>
  
  <pre><code>docker build -t microservicedemo/corenlp .
  </code></pre>
  
  <p>Next, I ran it:</p>
  
  <pre><code>docker run -P -d --name corenlp microservicedemo/corenlp
  </code></pre>
  
  <p>And docker ps -a shows:</p>
  
  <pre><code>CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                     NAMES
  9e7d92c27e39        microservicedemo/corenlp   "java -Djava.secur..."   4 seconds ago       Up 2 seconds        0.0.0.0:32768-&gt;8080/tcp   corenlp
  </code></pre>
  
  <p>But I cannot access it at <a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a> or <a href="http://192.168.0.26:8080" rel="nofollow noreferrer">http://192.168.0.26:8080</a>. When I run <code>docker inspect 9e7d92c27e39 | grep IPA</code>, the IP Addresses are NULL or "". Lastly, <code>DOCKER_HOST</code> is set as <code>unix:///var/run/docker.sock</code>.</p>
  
  <p>I can't figure out how to access the container in a browser or via curl.</p>