title: How to connect to a HTTP server in Docker container on a remote host?
body: <p>I want to run a Web server (nginx-based) in a container on a machine on the local network, access it over this network. It's working fine on the local machine, but I can't figure out how to get into it from another machine.
  I've tried:</p>
  
  <p>sudo docker network create hyperdata-network</p>
  
  <p>sudo docker network inspect hyperdata-network</p>
  
  <p>gives me an IP of 172.18.0.2, which I can ping.</p>
  
  <p>Next I tried to attach the nginx-based container (called hyperdata-static) to the network:</p>
  
  <p>sudo docker run -itd --name hyperdata --network=hyperdata-network --hostname=hyperdata -p 80:80 hyperdata-static</p>
  
  <p>but I can't see port 80, and the docs have got me hopelessly confused.</p>
  
  <p>Ideally I'd also like to address the Web server by name.</p>
  
  <p>Suggestions?</p>