title: Access Docker container running in Vagrant
body: <p>Hi I'm using vagrant and docker-compose to run a simple web app. It works fine on OSX, but when doing it in a vagrant box (ubuntu/trusty64) it won't work. </p>
  
  <p>I don't want to use the docker provider for vagrant, since I'm testing this for another type of deployment. This should work since I'm doing the exact same thing as on my local machine.</p>
  
  <p>Why can't I even curl localhost port 80 (or any port I've tried) on the app?</p>
  
  <pre><code>root@vagrant-ubuntu-trusty-64:/home/vagrant/slack-challenge# docker ps
  CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                  NAMES
  03f4740887d7        slackchallenge_nginx   "/bin/sh -c 'servi..."   43 minutes ago      Up 12 minutes       0.0.0.0:8080-&gt;80/tcp   slackchallenge_nginx_1
  ed80831b69a9        slackchallenge_fpm     "/usr/bin/supervisord"   43 minutes ago      Up 12 minutes       9000/tcp               slackchallenge_fpm_1
  140ea815843b        mariadb                "docker-entrypoint..."   43 minutes ago      Up 12 minutes       3306/tcp               slackchallenge_db_1
  root@vagrant-ubuntu-trusty-64:/home/vagrant/slack-challenge# curl localhost
  curl: (7) Failed to connect to localhost port 80: Connection refused
  root@vagrant-ubuntu-trusty-64:/home/vagrant/slack-challenge#
  </code></pre>
  
  <p>seems like something networky.</p>