title: How to map docker ports using vagrant 1.6 and the docker provider
body: <p>I'm currently trying to map my docker container ports from the container to the host (boot2docker). The end goal is to map those ports to my physical machine, but one step at a time.</p>
  
  <p>My Vagrantfile currently looks like:</p>
  
  <pre><code>Vagrant.configure("2") do |config|
  
      config.vm.define "app1" do |a|
          a.vm.provider "docker" do |d|
              d.build_dir = "dockers/app1"
              d.name = "app1"
              d.ports &lt;&lt; "8080:8080"
              d.ports &lt;&lt; "8443:8443"
              d.volumes &lt;&lt; "/vagrant/data/app1:/var/app1"
          end
      end
  
      config.vm.define "app2" do |a|
          a.vm.provider "docker" do |d|
              d.build_dir = "dockers/app2"
              d.name = "app2"
              d.ports &lt;&lt; "8081:8081"
              d.link("app1:app1")
          end
      end
  end
  </code></pre>
  
  <p>When I run <code>vagrant up app1 --provider=docker</code> the container spins up correctly, however when I do a docker ps I can see that ports have not been mapped.</p>
  
  <pre><code>0.0.0.0:2222-&gt;22/tcp, 8080/tcp, 8443/tcp
  </code></pre>
  
  <p>I am using VirtualBox, so I have used it GUI to port forward my physical machines <code>8080</code> to the hosts (boot2docker) <code>8080</code>.</p>