title: Best way to install docker on Vagrant
body: <p>I want to create several VMs that have <code>docker</code> pre-installed.</p>
  
  <p>What is the best/recommended way to go about this?</p>
  
  <p>a) Have Docker provisioner do something dummy, just so that Docker gets installed, e.g.</p>
  
  <pre><code>  mymachine.vm.provision "docker" do |docknode|
        # do something pointless
    end
  </code></pre>
  
  <p>b) run docker installation via a shell provisioner script?</p>
  
  <pre><code>mymachine.vm.provision "shell", path: "docker-installation-script.sh"
  </code></pre>
  
  <p>c) use a Vagrant image that comes with Docker pre-installed?</p>