title: Forward Ports from boot2docker using the Vagrant Docker provider
body: <p>I'm trying to utilize Vagrant 1.6's Docker provider and I seem to have run into a snag. I can successfully bring up the Docker container and guest OS, but then I can't access the service I've brought up within the container from the host OS. Here's my Vagrantfile:</p>
  
  <pre><code>VAGRANTFILE_API_VERSION = "2"
  
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.network :forwarded_port, guest: 8000, host: 8000
  
    config.vm.define "icecast" do |v|
      v.vm.provider "docker" do |d|
        d.image = "moul/icecast"
        d.ports = ["8000:8000"]
  
        d.env = {
          # SOURCE_PASSWORD: 'password',
          ADMIN_PASSWORD: 'password',
          # PASSWORD: 'password',
          # RELAY_PASSWORD: 'password'
        }
      end
    end
  end
  </code></pre>
  
  <p>My understanding is that running <code>vagrant up --provider=docker</code> on OS X will start a VM running boot2docker that will then run my container. Running <code>vagrant docker-logs</code> seems to confirm that my container is created and the service started, but now I can't for the life of me figure out how to access the service from my OS X host. If I was using a standard VirtualBox provider, I would expect the <code>config.vm.network :forwarded_port</code> directive to handle the forwarding, but adding that doesn't seem to make any difference.</p>
  
  <p>What do I need to do to be able to access this service from my OS X host?</p>
  
  <p><strong>Update</strong>: For reference, here is the image's Dockerfile: <a href="https://github.com/moul/docker-icecast/blob/master/Dockerfile">https://github.com/moul/docker-icecast/blob/master/Dockerfile</a></p>