title: Running Docker Under Vagrant
body: <p>I'm having a puzzling issue with Vagrant 1.7.2 running a Docker image. I'm trying to launch a plain vanilla Docker container based on this Postgres image. If I understand correctly Docker should <em>not</em> be trying to ssh into this image, but simply spinning it up and exposing port 5432. </p>
  
  <p>My Vagrant file is as follows:</p>
  
  <pre><code>Vagrant.configure("2") do |config|
    config.vm.network :forwarded_port, guest: 5432, host: 5432
    config.vm.provider "docker" do |d|
      d.image = "tutum/jboss"
      d.ports = ["5432:5432"]
      d.env = {
          POSTGRES_PASSWORD: 'postgres'
      }
      d.has_ssh = false
    end
  end
  </code></pre>
  
  <p>Output from <code>vagrant up --provider=docker</code> is:</p>
  
  <pre><code>vagrant up --provider=docker
  Bringing machine 'default' up with 'docker' provider...
  ==&gt; default: Docker host is required. One will be created if necessary...
      default: Vagrant will now create or start a local VM to act as the Docker
      default: host. You'll see the output of the `vagrant up` for this VM below.
      default:
      default: Checking if box 'mitchellh/boot2docker' is up to date...
      default: Clearing any previously set forwarded ports...
      default: Clearing any previously set network interfaces...
      default: Preparing network interfaces based on configuration...
      default: Adapter 1: nat
      default: Forwarding ports...
      default: 2375 =&gt; 2375 (adapter 1)
      default: 22 =&gt; 2222 (adapter 1)
      default: Running 'pre-boot' VM customizations...
      default: Booting VM...
      default: Waiting for machine to boot. This may take a few minutes...
      default: SSH address: 127.0.0.1:2222
      default: SSH username: docker
      default: SSH auth method: private key
      default: Warning: Connection timeout. Retrying...
      default: Warning: Authentication failure. Retrying...
      default: Warning: Authentication failure. Retrying...
      default: Warning: Authentication failure. Retrying...
      default: Warning: Authentication failure. Retrying...
      default: Warning: Authentication failure. Retrying...
      default: Warning: Authentication failure. Retrying...
  </code></pre>
  
  <p>At this point the process just times out trying to ssh into the image.</p>